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 12-01-2007
salaathi's Avatar
salaathi salaathi is offline
Registered User
  
 

Join Date: Sep 2007
Location: Madurai
Posts: 20
Question grep the string with the line number

Dear Masters,
Here i have some doubts can anyone clarify?.

Is it possible to grep the lines by specifying the line numbers.

I know the line number which i want to grep.
example:
grep 40th line filename
grep 50th line filename


Need ur comments.

Last edited by salaathi; 12-01-2007 at 06:54 AM.. Reason: to simplify the readers understand