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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-19-2008
SkySmart SkySmart is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 50
Question About Getting Line Numbers in a File

Ok, this is a unique question.



Say I have a word like "jamamamama" in a file called foo.bar.

Now, how do you get the line number that the word "jamammama" exist in the file foo.bar without having to go into the foo.bar file to edit it?


is there a command i can run on the foo.bar command to get the line number?