The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-17-2008
Bandit390 Bandit390 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 19
Using sed to print from the bottom up?

I have file.txt

Code:
bob
jon
jones
gary

I want to print from the botton, up using sed.


Code:
gary
jones
jon
bob

Whats one command I can use to do this? Or will I have to construct a new file that would hold the original file in reverse and then print the reversed file?