cat x.log | grep 'xxx' -A100 //(A即after,查看x.log 'xxx' 内容后100行)
cat x.log | grep 'xxx' -B100 //(B即before,查看x.log 'xxx' 内容前100行)
cat x.log | grep 'xxx' -A100 //(A即after,查看x.log 'xxx' 内容后100行)
cat x.log | grep 'xxx' -B100 //(B即before,查看x.log 'xxx' 内容前100行)