How to show all lines before or after a match in grep?

后端 未结 0 720
北海茫月
北海茫月 2020-12-25 12:16

I have found I can use grep -A10 "search string" file.txt to show 10 lines after the search string is found in the file or grep -B10 "searc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题