grep常用参数
26 April 2016

使用示例

检索xxx.log中包含hello的行,并且显示该行上面5行和下面10行

grep -A 10 -B 5 hello xxx.log
–EOF–