How to pipe list of files returned by find command to cat to view all the files

后端 未结 15 1451
庸人自扰
庸人自扰 2020-12-02 03:44

I am doing a find and then getting a list of files. How do I pipe it to another utility like cat (so that cat displays the contents of all those fi

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:08

    Use ggrep.

    ggrep -H -R -I "mysearchstring" *
    

    to search for a file in unix containing text located in the current directory or a subdirectory

提交回复
热议问题