sorting and reversing lines of a file
     Steve Mawer  
    scm at datlog.co.uk
       
    Tue Feb 21 21:02:46 AEST 1989
    
    
  
In article <2585 at pegasus.ATT.COM> hansen at pegasus.ATT.COM (Tony L. Hansen) writes:
>    WARNING
>	Command formats such as
>
>		tac file1 file2 >file1
>
>	will cause the original data in file1 to be lost, therefore, take
>	care when using shell special characters.
>
>    SEE ALSO
>	cat(1).
Note also that formats such as 
	   cat file1 file2 > file2
will cause your disk to become *very* full (as well as losing the original
contents of file2).
I can't speak for tac, since it won't do a simple first-to-last read of the
files.
-- 
Steve C. Mawer        <scm at datlog.co.uk> or < {backbone}!ukc!datlog!scm >
                       Voice:  +44 1 863 0383 (x2153)
    
    
More information about the Comp.unix.questions
mailing list