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 […]
Often you are looking for a keyword within a log file but you need to print out X lines BEFORE […]