How to treat files as huge string with macos grep?

后端 未结 0 1542
梦毁少年i
梦毁少年i 2020-12-18 16:41

I\'m using the following command on Ubuntu to list all files containing a given pattern:

for f in *; do if grep -zoPq "foo\\nbar" $f; then echo $f;          


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