📜  在 grep 之后打印接下来的 10 行 - Shell-Bash 代码示例

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

代码示例1
grep -A 2 "app" mytext.txt //prints two lines after the match line
grep -B 2 "app" mytext.txt //prints two lines before the match line