I am wanting to do a search for instances of a given string but I want more then just the line its on, but may three entry lines before and after each time I find the string. The file I look through is an over 5,000,000 line log. I only get the line the string is on with a basic grep and doing a tail and head takes alot of work and time.
Thanks,
Tim Ely
Thanks,
Tim Ely