sorting and reversing lines of a file
Bill Lorensen
lorensen at dwaskill.stars.flab.Fujitsu.JUNET
Mon Jan 30 22:58:15 AEST 1989
How about:
grep -n . file | sort -r | sed -e 's/^.*://'
Of course, as leo at philmds.UUCP (Leo de Wit) said:
tail -r file
does the trick nicely.
--
Bill Lorensen
US Mail:GE Corporate Research and Development
P.O. Box 8
Bldg KW Room C207A
Schenectady, NY 12301
Office: (518) 387-6744 or 8*833-3874
Fax: (518) 387-6560 or 8*833-6560
E-Mail: lorensen at ge-crd.arpa
lorensen at crd.steinmetz.ge.com
More information about the Comp.unix.questions
mailing list