-A 、-B、 -C 后面都跟阿拉伯数字
-A是显示匹配后和它后面的n行。
-B是显示匹配行和它前面的n行。
-C是匹配行和它前后各n行。
tail -5000f nohup.out |grep -C 200 entInfoChange
tail -5000f nohup.out |grep -B 500 '用户不存在'
-A 、-B、 -C 后面都跟阿拉伯数字
-A是显示匹配后和它后面的n行。
-B是显示匹配行和它前面的n行。
-C是匹配行和它前后各n行。
tail -5000f nohup.out |grep -C 200 entInfoChange
tail -5000f nohup.out |grep -B 500 '用户不存在'