Using AWK to print N lines up until the FIRST MATCH of a string and then exit
Often you are looking for a keyword within a log file but you need to print out X lines BEFORE the first match of a string, THEN exit the search. There are many ways to skin a cat, and here are a few ways. EXAMPLE 1: In the following I am looking for 7 lines
Read More