Grep command in Linux help (Newbie)?

badmab07

New member
Mar 10, 2011
0
0
0
Say I have a file with 200 lines. I do the grep -n PATTERN FILE .
Now say I want an output of lines with the word "hello" by itself only in lines 100 -150. And the output has to have the lines numbered too. How can I do this ? I have been trying for hours !

If you know another command I can use, thats welcome too.

10 points will be given
I meant hello as in not joined with any other word. Like helloworld. Instead I want lines that have " hello world"
 
Back
Top