[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)
有以下进程,我想杀掉Httpd的连接。 [code]root 2285 1881 0 09:20 tty4 00:00:00 -bash root 20748 1 0 10:26 ? 00:00:00 /usr/sbin/httpd apache 20751 20748 0 10:26 ? 00:00:00 [httpd] apache 20752 20748 0 10:26 ? 00:00:00 [httpd] apache 20753 20748 0 10:26 ? 00:00:00 [httpd] apache 20754 20748 0 10:26 ? 00:00:00 [httpd] apache 20755 207...
clean_pdtkernel: cd $(PDTKRENEL_PATH)/ ;find ./* \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ -type f -print | xargs rm -f -rm -rf include 在顶层makefile里面调用clean_pdtkernel这个目标结果报错: cd /csp/yuanyn/home/xia/Builds/ZXCSP/chip_broadcom/product/csp_broadcom/scripts/../../../../csp/cspkernel/ ;find ./* \ ...
我想在find后 -exec 执行命令,如何执行两条指令? find /etc -name aaa -exec {CMD1 {}\; CMD2 {}\;} 不行 :em23: help! :em14: