Trying it again, with only STDERR shows:
---------snip--------
% echo -e "b\na" | \
msort -l -n 1 2>&1 1>&- | \
hexdump -v -e '1/1 "%_ad# "' -e '10/1 "%02X ""\t"" "' -e '10/1 " %3_u\"
"\n"' | \
sed 's/^\(.#\)/ \1/;s/^\(..#\)/ \1/'
0# 4B 65 79 20 31 20 6F 62 6C 69 K e y 1 o b l
i
10# 67 61 74 6F 72 79 20 20 66 69 g a t o r y f
i
20# 72 73 74 20 66 69 65 6C 64 20 r s t f i e l d
30# 20 20 49 6E 63 72 65 61 73 69 I n c r e a s
i
40# 6E 67 20 6C 65 78 69 63 6F 67 n g l e x i c o
g
50# 72 61 70 68 69 63 0A 52 65 61 r a p h i c lf R e
a
60# 64 69 6E 67 20 66 72 6F 6D 20 d i n g f r o m
70# 73 74 64 69 6E 2E 0A 52 65 63 s t d i n . lf R e
c
80# 6F 72 64 73 20 70 72 6F 63 65 o r d s p r o c
e
90# 73 73 65 64 3A 20 20 20 20 20 s s e d :
100# 20 20 20 20 20 20 20 20 20 20
110# 20 20 20 20 20 20 20 20 20 20
120# 20 30 08 08 08 08 08 08 08 08 0 bs bs bs bs bs bs bs
bs
130# 08 08 08 08 08 08 08 20 20 20 bs bs bs bs bs bs bs
140# 20 20 20 20 20 20 20 20 20 20
150# 20 32 0A 53 6F 72 74 69 6E 67 2 lf S o r t i n
g
160# 2E 2E 2E 0A 08 08 08 08 08 08 . . . lf bs bs bs bs bs
bs
170# 08 08 08 08 52 65 63 6F 72 64 bs bs bs bs R e c o r
d
180# 73 20 77 72 69 74 74 65 6E 3A s w r i t t e n
:
190# 20 20 20 20 20 20 20 20 20 20
200# 20 20 20 20 20 20 20 20 20 20
210# 20 20 20 20 20 20 20 20 30 08 0
bs
220# 08 08 08 08 08 08 08 08 20 20 bs bs bs bs bs bs bs bs
230# 20 20 20 20 20 20 32 0A 43 6F 2 lf C
o
240# 6D 70 61 72 69 73 6F 6E 73 3A m p a r i s o n s
:
250# 20 20 20 20 20 20 20 20 20 20
260# 20 20 20 20 20 20 20 20 20 20
270# 20 20 20 20 20 20 20 20 20 20
280# 20 20 31 0A 1 lf
---------snip--------
Many backspaces. The STDERR text itself lines up neatly, when not
mixed with STDOUT:
% echo -e "b\na" | msort -l -n 1 2>&1 1>&-
Key 1 obligatory first field Increasing lexicographic
Reading from stdin.
Records processed: 2
Sorting...
Records written: 2
Comparisons: 1
It's a puzzle as to why the programmer used so many 'bs' chars.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]