分页: 1 / 1

[问题]有谁知道find的-prune选项的用法

发表于 : 2007-10-08 20:57
wms011618
find的-prune选项的标准用法格式是怎么样的,后面的-o什么意思?和-name一起怎么使用怎么写?

举个例子 吧,看了就明白了

发表于 : 2007-10-08 21:04
newman0708
打印当前目录下除去javadocument外的其他目录中的rar文件

find ./ -path "./javadocument" -prune -o -print|grep ".*.rar"
-o 说明是其他
-prune 去除

发表于 : 2007-10-08 21:16
wms011618
谢谢,我刚开始学shell。
书上写成 find . -name "./test" -prune -o -print,原来是-path