sorting and reversing lines of a file
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Jan 28 15:17:49 AEST 1989
In article <899 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
>...the "rev" on my Sun, which is probably the one from 4BSD, reverses
>the *characters* in each *line* of the file, but doesn't reverse the
>lines themselves.
Oops, sorry -- I should have checked before posting.
Maybe "rev" combined with a "sideways" utility ... :-)
Anyway, the pr|sort|cut approach I suggested should suffice.
More information about the Comp.unix.questions
mailing list