Reversing a file?

Francois-Michel Lang lang at PRC.Unisys.COM
Tue Oct 3 23:51:18 AEST 1989


In article <MONTNARO.89Oct2224215 at sprite.crd.ge.com> <montanaro at crdgw1.ge.com> (Skip Montanaro) writes:
>Does somebody have an elegant shell script for reversing the lines of a
>file? I've come up with the following short one:

No need to write a script.
tail -r does this already.

----------------------------------------------------------------------------
Francois-Michel Lang
Paoli Research Center, Unisys         lang at prc.unisys.com      (215) 648-7256
Dept of Comp & Info Science, U of PA  lang at linc.cis.upenn.edu  (215) 898-9511

----------------------------------------------------------------------------
Francois-Michel Lang
Paoli Research Center, Unisys         lang at prc.unisys.com      (215) 648-7256
Dept of Comp & Info Science, U of PA  lang at linc.cis.upenn.edu  (215) 898-9511



More information about the Comp.unix.questions mailing list