How can I grep hidden files?

前端 未结 10 1277
北荒
北荒 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 15:02

    I just ran into this problem, and based on @bitmask's answer, here is my simple modification to avoid the problem pointed out by @sehe:

    grep -r search_string * .[^.]*
    

提交回复
热议问题