1、find: paths must precede expression
[root@localhost /]# find find /u01/app/diag/tnslsnr/fossdb/listener/alert -name log_*.xml
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
[root@localhost /]#
进行查找资料,多文件的查找的时候需要增加单引号
[root@localhost /]# find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘
2、find: missing argument to `-exec’ 或 find: 遗漏“-exec”的参数
[root@localhost /]#find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘ -exec rm -rf {}\;
find: missing argument to `-exec’
要这样
find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘ -exec rm -rf {} \;--这里要加空格
原文地址:http://10983441.blog.51cto.com/10973441/1771021