Tag Archives: grep before after

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 … Continue reading

Posted in File & Directory | Tagged , , | Comments Off on grep show lines before and after