ChinaUnix.net
相关文章推荐:

find exec

本帖最后由 jueljust 于 2012-04-12 14:00 编辑 我想在find出来的结果上执行[code]ls -l --color {}; file {}[/code]或者[code]ls -l --color {} && file {}[/code]应该怎么写 如果exec上不支持 ; && || 之類的,麻煩大家告知一下

by jueljust - Linux新手园地 - 2012-04-12 22:43:49 阅读(1200) 回复(5)

相关讨论

是不是等find完所有的文件再做exec 还是find 一个就exec 一个乃??

by billquick - Shell - 2004-12-14 17:06:20 阅读(1694) 回复(5)

那位高手看看,问什么我的第二个命令出现错了,怎么改呢? find ./ -name "*temp*.sql" -exec ls -alrt {} \; -rw-r--r-- 1 cius users 597 3月 22 17:15 ./temp/reward_cal_n_temp.sql find ./ -name "*temp*.sql" -exec cp *.sql ./temp1 {} \; cp: 目标"./temp/ reward_cal_n_temp.sql" 不是目录

by shanck - Shell - 2013-03-23 15:43:42 阅读(1141) 回复(3)

[oracle@RAC1 arch]$ find . -type f -mtime +5 -exec rm { } \; rm: cannot remove `{': No such file or directory rm: cannot remove `}': No such file or directory rm: cannot remove `{': No such file or directory rm: cannot remove `}': No such file or directory 和版本有关系吗?

execfind

by XQKA - Shell - 2011-07-29 11:47:58 阅读(1893) 回复(3)

找当天修改的文件和文件夹,然后删除,下面只能删除文件,怎么连不空的文件夹和子文件全部删除呢? find . -mtime -1 -exec rm {} \;

by spirit_12 - Shell - 2010-05-19 16:24:47 阅读(1118) 回复(3)

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71164/showart_2095372.html

by tomoowang - Linux文档专区 - 2009-11-16 10:07:41 阅读(983) 回复(0)

我想查找一些文件的同时,计算出文件大小.以及匹配某一条件的行数,供后续使用 find . -name "*.xml" -exec wc -c {} \; -exec grep -c '

by ghostgorst - Shell - 2009-09-21 13:20:01 阅读(3356) 回复(20)

find exec 用法- - 在linux 里man find 里有一段说明: -exec command ; execute command; true if 0 status is returned. All following arguments to find are taken to be arguments to the command until an argument consisting of `;' is encountered. The string `{}' is replaced by the current file name being processed everywhere ...

by dorainm - Linux文档专区 - 2007-08-03 13:55:21 阅读(829) 回复(0)

在执行 find /* -ctime -2 -exec cp {} \; 时 向把查找出来的文件放到/bacup 下 请问 /backup路径在 find 命令里的位置应该是哪?

by mang003 - Linux系统管理 - 2006-10-10 11:35:05 阅读(963) 回复(2)

我用命令 find . -name ".svn" -exec rm -rf {} \; 删除当前目录及子目录中的.svn目录,命令执行后.svn目录确实被删除,但总是有错误提示: find: ./po/.svn: 没有那个文件或目录 find: ./res/.svn: 没有那个文件或目录 find: ./res/glade/.svn: 没有那个文件或目录 find: ./res/image/.svn: 没有那个文件或目录 find: ./src/.svn: 没有那个文件或目录 find: ./.svn: 没有那个文件或目录 find: ./test/.svn: 没有那个文件或目录 f...

by chzht001 - Shell - 2006-09-29 10:29:18 阅读(1632) 回复(4)

[code]find spam_2/ -name "*" -exec ./spamfeed.sh {};[/code] 上面是一个完整的命令,find spam_2/ -name "*" 这个都没有问题,把文件给列出来,但到下面就有问题了。 出现的错误如下: find: missing argument to `-exec'

by zw2002 - Shell - 2006-09-14 19:55:24 阅读(6589) 回复(3)