grep ??? searching a file and outputting 5 lines either side...
Anyone tell me how I can search a file and output the following.
1 - 10 lines with the search result in the middle
2 - line numbers (if possible?)
I have the grep working, simple search for a string but I would like to output the above 5 lines and the following 5 lines. Any thoughts?