grep -A -B -C使用

-A -B -C 后面都跟阿拉伯数字


-A是显示匹配后和它后面的n行。
-B是显示匹配行和它前面的n行。
-C是匹配行和它前后各n行。

原文地址:https://www.cnblogs.com/linliquan/p/14188132.html