1、find: paths must precede expression
[[email protected] /]# find find /u01/app/diag/tnslsnr/fossdb/listener/alert -name log_*.xml
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
[[email protected] /]#
进行查找资料,多文件的查找的时候需要增加单引号
[[email protected] /]# find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘
2、find: missing argument to `-exec’ 或 find: 遗漏“-exec”的参数
[[email protected] /]#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 {} \;--这里要加空格
时间: 2024-08-25 21:04:49