AIX find 中的prune参数怎么用

来源:百度知道 编辑:UC知道 时间:2024/06/24 07:50:13

find ./ -name publisher -prune -o -name "*.LOG" -print
命令表示查找并显示当前目录下所有后缀名为LOG的文件,但是忽略查找显示目录名称为publisher的文件下的LOG文件

To print the path names of all files in or below the current directory, except the directories named SCCS or files in
the SCCS directories, type: find . -name SCCS -prune -o -print

To print the path names of all files in or below the current directory, including the names of SCCS directories, type:

find . -print -name SCCS -prune