I am trying to rewrite the grep command to capture the record(line) that has a pattern match and then to print out the matching line plus the 5 lines above and below the matched line so one can view the match in context. My problem is capturing the matched record. Here is a sample of what I have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.