Match all files under all nested directories with shell globbing

后端 未结 6 1062
星月不相逢
星月不相逢 2021-02-03 23:35

Is there a way to use shell globbing to identify nested directories?

so if I have dir/dir1/dir2/dir3/dir4/dir5/.. and I have files under all of them, what is the equival

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 00:07

    You may try:

    **/*.*
    

    However it'll ignore hidden files (such as .git files). Sometimes it's a life-saver.

    Read more at: What expands to all files in current directory recursively? at SO

提交回复
热议问题