今天使用find命令查找删除文件时,遇到下面错误,这个是因为在{}和之间必须要有空格,否则会报上面的错。 以前都没有注意到这个细节,特此记录一下。
find: missing argument to `-exec',argument-exec
今天使用find命令查找删除文件时,遇到下面错误,这个是因为在{}和之间必须要有空格,否则会报上面的错。 以前都没有注意到这个细节,特此记录一下。
[[email protected]
full]# find . -maxdepth 1 -type d -mtime 3 -exec rm -rf {};
find: missing argument to `-exec'
[[email protected]
full]# find . -maxdepth 1 -type d -mtime 3 -exec rm -rf {} ;
[[email protected]
full]#
http://www.bkjia.com/Linuxjc/1213528.htmlwww.bkjia.comtruehttp://www.bkjia.com/Linuxjc/1213528.htmlTechArticlefind: missing argument to `-exec,argument-exec 今天使用find命令查找删除文件时,遇到下面错误,这个是因为在{}和之间必须要有空格,否则会报上...
vnsc5858威尼斯城官网,
[root@DB-Server full]# find .
-maxdepth 1 -type d -mtime 3 -exec rm -rf {};
find: missing argument to
`-exec'
[root@DB-Server full]# find . -maxdepth 1 -type d -mtime 3 -exec
rm -rf {} ;
[root@DB-Server full]#
编辑:计算机教程 本文来源:find: missing argument to `-exec'
关键词: