如何查找所有子目录中具有相同名称的所有文件
我想找到所有不同的 .gitignore 文件,我必须将它们合并为一个。
我尝试了类似 find */**/.gitignore
但没有任何结果。
所有文件都位于我当前目录的子目录以及当前目录中。
我在 Linux 上使用 Bash
I want to find all the different .gitignore files I have to combine them into one.
I tried something like find */**/.gitignore
but that came up with nothing.
All the files are in sub directories of my current dir, as well as the current directory.
I am using Bash on linux
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
应该可以,
因为您使用的是 bash:
来自
man bash
:That should do
Since you are using bash:
From
man bash
:试试这个
在你的情况下
这会导致
Try this
In your case
This results in