How can I grep hidden files?

前端 未结 10 1283
北荒
北荒 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

    To find only within a certain folder you can use:

    ls -al | grep " \."
    

    It is a very simple command to list and pipe to grep.

提交回复
热议问题