ChinaUnix.net
相关文章推荐:

prune juice

请问下这个查找语句中的o是什么意思 find /usr/sam -path "/usr/sam/dir1" -prune -o -print

by oracleoneone - Linux新手园地 - 2011-11-12 14:33:46 阅读(1524) 回复(1)

相关讨论

find . \( -path .*/Input -o -path .*/Output -o -path .*/Current \) -prune -o -name "*.htm" -print 像这样的find 不期望的是跳过Input,Output, Current的目录进行检索 但是 正则不起作用 请问 怎么弄

by luyi1983 - Shell - 2009-11-13 17:30:33 阅读(2368) 回复(9)

find . -name "/data26/billold/chenyj/log/count_sms_later.log" -prune -o -print . ./count_sms_later.log ./count_sms_later.log/abc ./count_sms_later.log/abc/ccd ./count_sms_later.log.070914 ./count_sms_later.log.070918 ./count_sms_later.log.070928 我用了-prune 应该不会出现./count_sms_later.log/abc ./count_sms_later.log/abc/ccd 小菜鸟求教啊

by amcyj - HP-UX - 2008-05-18 22:51:14 阅读(1867) 回复(4)

find . -name \"/data26/billold/chenyj/log/count_sms_later.log\" -prune -o -print . ./count_sms_later.log ./count_sms_later.log/abc ./count_sms_later.log/abc/ccd ./count_sms_later.log.070914 ./count_sms_later.log.070918 ./count_sms_later.log.070928 我用了-prune 应该不会出现./count_sms_later.log/abc ./count_sms_later.log/abc/ccd 小菜鸟求教啊

by amcyj - HP-UX - 2008-05-18 22:51:14 阅读(3282) 回复(2)

-prune If the current entry is a directory, cause find to skip that directory. This can be useful to avoid walking certain directories, or to avoid recursive loops when using cpio -p. Note, however, that -prune is useless if ...

by kenancola - Shell - 2007-09-21 08:46:35 阅读(2068) 回复(5)

请问如果希望在使用find命令去搜索一个目录(如目录/tmp)时,不去搜索该目录下的特定的子目录(如/tmp/test)

by tombola - Solaris - 2006-09-10 07:15:20 阅读(859) 回复(1)

请问如果希望在使用find命令去搜索一个目录(如目录/tmp)时,不去搜索该目录下的特定的子目录(如/tmp/test)

by tombola - Solaris - 2006-09-09 14:43:29 阅读(2813) 回复(0)

问大家一个find的低级问题,我以前遇到这个问题到现在也没解决。 我想查找/目录下的所有目录,但不包括/proc如何做到 ? find / -type d -path "/proc" -prune -o -print 结果并不是我想的那样 我系统为rh9,kernel2.6.12

by sting0z - Shell - 2005-08-15 13:26:21 阅读(5714) 回复(6)

[code][root@vhost1 a]# ls -R . .: a b ./b: a [root@vhost1 a]# find . -path './b' -prune -o -type f ./b ./a [root@vhost1 a]# find . -path './b' -prune ./b[/code]能否利用短路方式给分解一下,讲讲执行过程,谢谢,实在是糊涂了

by aaa103439 - Shell - 2014-01-03 11:57:04 阅读(2944) 回复(9)

目录结构 ./templates/ ./templates/Makefile ./templates/Makefile.mk ./test ./test/Makefile ./test/...... //other files 1. # find . -path "./test" -prune -o -print 这个是对的 输出结果: ./templates/Makefile ./templates/Makefile.mk 2. # find . -name "Makefile" -path "./test" -prune -o -print 这个为什么显示所有的文件呢??? 输出结果: ./templates/Makefil...

by jesionchen - Shell - 2011-09-09 10:43:45 阅读(1788) 回复(3)

想要查询/root/xz下除了/root/xz/xz2目录下的所有.txt文档 find /root/xz -name "*.txt" -path "/root/xz/xz2" -prune -o -print 上述命令哪里错了?

by 落音 - Shell - 2009-06-19 23:42:09 阅读(1902) 回复(5)