Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!pacbell!sactoh0!jak From: jak@sactoh0.UUCP (Jay A. Konigsberg) Newsgroups: comp.unix.questions Subject: Re: Re: Reversing a file? Message-ID: <1920@sactoh0.UUCP> Date: 5 Oct 89 00:37:15 GMT References: <1989Oct3.041122.28028@ctr.columbia.edu> Reply-To: jak@sactoh0.UUCP (Jay A. Konigsberg) Organization: SAC-UNIX, Sacramento, Ca. Lines: 22 In article (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: > >Ready? > ** tail -r ** >Anything else you want? This is a nice, clean way to do it, though " tail " had (has?) a bug (feature?) relating to file size. It can't (won't) create a file larger than 512 blocks. Depending on the size of the original file, it could create a problem. -- ############################################################# # Jay Konigsberg # (916) 484-6029 # # SAC-UNIX, Sacramento, Ca. # UUCP=...pacbell!sactoh0!jak # #############################################################