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
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