How can I grep hidden files?

前端 未结 10 1279
北荒
北荒 2020-12-07 14:27

I am searching through a Git repository and would like to include the .git folder.

grep does not include this folder if I run



        
10条回答
  •  一个人的身影
    2020-12-07 14:57

    In addition to Tyler's suggestion, Here is the command to grep all files and folders recursively including hidden files

    find . -name "*.*" -exec grep -li 'search' {} \;
    

提交回复
热议问题