关于find

回复 收藏
[Ghost@QuietM test]$ find . -path "tt" -prune
[Ghost@QuietM test]$ find . -path "tt" -prune -print
[Ghost@QuietM test]$ find . -path "tt" -prune -o -print
.
./ss
./q
./q/cc.txt
./qq
./ssss
./link
./sa.love
./tt
./tt/ss
./tt/cc.txt
./tt/sa.love
./tt/sa
./sa
为什么只有加了-o才会输出。。
2015-08-04 12:31 举报
已邀请:
0

QuietM

赞同来自:

[Ghost@QuietM test]$ find . -path "/home/Ghost/P/test/tt" -prune -o -print . ./ss ./q ./q/cc.txt ./qq ./ssss ./link ./sa.love ./tt ./tt/ss ./tt/cc.txt ./tt/sa.love ./tt/sa ./sa
0

QuietM

赞同来自:

[Ghost@QuietM test]$ pwd
/home/Ghost/P/test
[Ghost@QuietM test]$ find . -path "/home/Ghost/P/test/tt" -prune -o -print.
./ss
./q
./q/cc.txt
./qq
./ssss
./link
./sa.love
./tt
./tt/ss
./tt/cc.txt
./tt/sa.love
./tt/sa
./sa
[Ghost@QuietM test]$ find . -path "./tt" -prune -o -print
.
./ss
./q
./q/cc.txt
./qq
./ssss
./link
./sa.love
./sa
绝对路径为什么没用。。。
0

戎强

赞同来自:

这么厉害

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: