打印匹配行的前后5行 grep -5 ‘something’ file 打印匹配行的前后5行 grep -C 5 ‘something’ file 打印匹配行的后5行 grep -A 5 ‘something’ file 打印匹配行的前5行 grep -B 5 ‘something’ file 来源:https://www.cnblogs.com/jxd283465/p/11690938.html 标签 grep linux系统 something