运行命令:
grep sam someFile.txt
何时someFile.txt包含:
fred 14 m foo sam 68 m bar christina 83 f baz bob 22 m qux Sam 41 m quux
将产生以下输出:
sam 68 m bar