Linux Question, Grep related.

ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
Is there anyway to search a text file for a particular word and output where the word is located in the file including the particular line it resides on?

i.e cat myfile | grep -i computer - would search myfile for the word computer but I also want the line it appears on to aid with text editing I don't use Vi or Vim I am currently using Nano.

Many Thanks
Microsoft's strategy to conquer the I.T industry

" Embrace, evolve, extinguish "

Comments

Sign In or Register to comment.