Linux find 排除目录
There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence.
[wfsb@sh-wfdsb-web-vm2 wsb]$ tree
.
├── folder1
├── folder2
│ ├── sub1
│ │ └── file1
│ └── sub2
│ └── file2
└── folder3
└── file3
5 directories, 3 files
[wfsb@sh-wfdsb-web-vm2 wsb]$ find -name folder3 -prune -o -type f -print
./folder2/sub1/file1
./folder2/sub2/file2
[wfsb@sh-wfdsb-web-vm2 wsb]$ find -path ./folder3 -prune -o -type f -print
./folder2/sub1/file1
./folder2/sub2/file2
885



被折叠的 条评论
为什么被折叠?



