Tag: grep examples

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...

linux grep regex examples

Grep regex matches the search content according to the specified rule pattern, which can help us find the content we need precisely. Syntax: grep -E...