Sort problems
Mike Zaleski
mzal at pegasus.UUCP
Mon Jan 21 08:02:52 AEST 1985
From: naiman at pegasus.UUCP (Ephrayim J. Naiman)
Okay you sort experts why do these two sorts not work ?
sort << !
Abe
Aba
!
This output is correct. Space is less than 'A' in the ASCII
sequence, which is how sort sorts by default. The -b option
should cause leading blanks to be ignored. When I tried it with
this input, it did not work.
sort << !
Abe
$Aba
!
Try escaping the $ with a backslash when entering this to the shell.
By the way, the ASCII value of '$' is also less than that of 'A'.
-- Mike^Z [allegra!, ihnp4!] pegasus!mzal Zaleski at Rutgers
More information about the Comp.unix
mailing list