The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 05-14-2007
matrixmadhan matrixmadhan is offline
Technorati Master
 

Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
Quote:
Originally Posted by ghostdog74
Code:
awk 'NR==35' file

This would still continue validating even after the 'n'th line has been selected and printed. Hence IMHO exit should be used !
Reply With Quote