The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-06-2007
Shell_Life's Avatar
Shell_Life Shell_Life is offline
Registered User
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
One way to display a specific line number in a file:
Code:
sed -n 'Xp' input_file
Where "X" is a line number in the "input_file".
Reply With Quote