那位高手看看,问什么我的第二个命令出现错了,怎么改呢? 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" 不是目录
[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 和版本有关系吗?
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71164/showart_2095372.html
我想查找一些文件的同时,计算出文件大小.以及匹配某一条件的行数,供后续使用
find . -name "*.xml" -exec wc -c {} \; -exec grep -c '
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 ...
在执行 find /* -ctime -2 -exec cp {} \; 时 向把查找出来的文件放到/bacup 下 请问 /backup路径在 find 命令里的位置应该是哪?
我用命令 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...
[code]find spam_2/ -name "*" -exec ./spamfeed.sh {};[/code] 上面是一个完整的命令,find spam_2/ -name "*" 这个都没有问题,把文件给列出来,但到下面就有问题了。 出现的错误如下: find: missing argument to `-exec'