【发布时间】:2019-01-05 10:08:57
【问题描述】:
我正在运行find . -depth -empty 来查找空文件夹和空文件。
但是很多.*文件夹和文件应该被忽略,比如.git,.gitignore,.nbproject...
如何编写脚本以在find 命令中忽略.*?
【问题讨论】:
-
这可能会有所帮助:askubuntu.com/q/266179/336375
-
Stack Exchange 网络充斥着跨站点重复,但我在 Stack Overflow 上能找到的最佳欺骗候选者是 BASH - ignore hidden files and empty source directory when copying