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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-15-2007
ghostdog74 ghostdog74 is offline
Registered User
 

Join Date: Sep 2006
Posts: 1,582
Code:
awk 'NR==5 || NR==9' "file"
if you want a range
Code:
awk 'NR>=5&&NR<=9' "file"

Last edited by ghostdog74; 08-15-2007 at 01:38 AM..
Reply With Quote