Chinaunix

标题: 问题 如何使用prune [打印本页]

作者: tombola    时间: 2006-09-09 14:43
标题: 问题 如何使用prune
请问如果希望在使用find命令去搜索一个目录(如目录/tmp)时,不去搜索该目录下的特定的子目录(如/tmp/test)
作者: susbin    时间: 2006-09-10 07:15
$ man find
...

Recursively print all file names in  the  current  directory
and below, but skipping SCCS directories:

example% find . -name SCCS -prune -o -print
...




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2