452   Linux

排序logs目录
1,

find . -name "*.php" -not -path "./logs/*"

2,

 find . -path ./logs -prune -o -name '*.php'

3,

find . -type d \( -path dir1 -o -path dir2 -o -path dir3 \) -prune -o -print



Leave a Reply

Your email address will not be published. Required fields are marked *