📜  匹配后的 grep 行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:51.908000             🧑  作者: Mango

代码示例1
Include -A flag to add lines after match and -B flag to add lines before
grep match -A 3    #display match line and 3 after lines
grep match -B 2 #display match line and 2 lines before