grep 显示匹配行的上下6行 grep -6 '关键词' 1.txt 参考来源: https://blog.csdn.net/weixin_34217711/article/details/93643630