在网上看了很多,都讲的非常模糊,这里做出比较深入的阐述
find . -path ./bin -a -prune -o -path ./sbin -a -prune -o -name "build.sh" -print
这样,上面的语句意思可以看成
find .
if ( -path ./bin 为真)
-prune
else if ( -path ./sbin 为真)
-prune
else
-name "build.sh"
-print
-o,-or 或者,等同于&&
-a,-and 并且,等同于||
-print 打印
-path 路径
-prune This primary always evaluates to true.可以认为走这个分支的意思