grep -A100 'word' filename 显示匹配行往后100行grep -B100 'word' filename 显示匹配行往前100行grep -C100 'word' filename 显示匹配行往前往后100行
本文来自博客园,作者:Charlie_ODD,转载请注明原文链接:https://www.cnblogs.com/chihaoyuIsnotHere/p/16927592.html