grep show lines before and after

Usually when searching for keywords, we need to look at the keyword context information, all of which use -A, -B and -C parameters. Show num rows after matching – grep -A Show num rows before matching – grep -B Show num lines before and after matching – grep -C Equivalent to : grep -A 3 … Continue reading grep show lines before and after