ChinaUnix.net
相关文章推荐:

find missing argument to `exec

[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 阅读(6614) 回复(3)

相关讨论

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

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

Last login: Thu Aug 16 13:59:03 from 172.21.144.150 Sun Microsystems Inc. SunOS 5.8 Generic February 2000 ClearCase Test You have new mail. stty: missing argument to `erase' Try `stty --help' for more information. Sun Microsystems Inc. SunOS 5.8 Generic February 2000 ClearCase Test You have new mail. [root@hzscm]% stty --help Usage: stty [-F DEVICE] [--file=DEVICE...

by simon_solaris - Solaris - 2007-08-23 14:41:41 阅读(4068) 回复(2)

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

by mang003 - 系统管理 - 2006-10-10 11:35:05 阅读(842) 回复(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 阅读(1636) 回复(4)

[code] find . -name 'a*' -o -name 'b*' -exec tar rf abc.tar {} \; [/code] 结果只操作了 'b*'文件. 'a*'文件没有操作

by ddb521 - Shell - 2008-11-06 09:44:11 阅读(2014) 回复(6)

有个地方不懂,那位可以帮解释一下,谢谢! 运行如下: [root@ftp test]# ls 1.sh 4.sh secure secure.1 secure.2 secure.3 secure.4 [root@ftp test]# find ./ -name "*.sh" -exec ls -l {} \; -rw-r--r-- 1 root root 7 Dec 26 08:21 ./4.sh -rw-r--r-- 1 root root 7 Dec 26 08:37 ./1.sh [root@ftp test]# find ./ -name "*.sh" -exec ls -l * {} \; 这里加一个* -rw-r--r-- 1 root root 7 Dec 26 08:21 ....

by wangshixian - Shell - 2007-12-30 02:09:44 阅读(3439) 回复(5)

先看代码: [code][root@egocomputer1 log]# find . -newer starttemp -a ! -newer endtemp -exec ls - {} \; 貧战法 0 -rw-r--r-- 1 root root 0 2006-10-01 endtemp -rw-r--r-- 1 root root 0 2002-01-01 file1 ...

by huachong - Shell - 2006-09-28 19:55:47 阅读(1676) 回复(7)

我用的是red hat 9.0 当我: [root@localhost root]# find /root -name Unit1.dcu -print -exec cp {} LumaQQ ; find: missing argument to `-exec' 什么问题呢这条命令?

by linuxcici - 系统管理 - 2006-04-12 22:54:16 阅读(655) 回复(1)

[root@localhost 41log]# find . -ctime +2 -exec rm {} //; find: missing argument to `-exec' [root@localhost 41log]# find . -ctime +2 - exec rm {} //; find: invalid predicate `-' [root@localhost 41log]# find . -ctime +2 exec rm {} //; find: paths must precede expression Usage: find [path...] [expression] 请问正确的写法是什么?

by scorpior - Shell - 2005-10-18 14:36:28 阅读(1312) 回复(2)

请问查找并删除CORE文件的完整命令是不是这样的?如果是,后面的一堆大括号什么意思?find /-name core -print | rm可以吗?

by dong_jh - Linux论坛 - 2004-06-27 13:04:50 阅读(1339) 回复(6)