问题描述
[root@single shareplex_health_check]# find splex_check_log/ -name splex_check_log* -mtime +1 -exec rm -rf {}\;
find: missing argument to `-exec'
解决
需要在{}两端加空格。
[root@single shareplex_health_check]# find splex_check_log/ -name splex_check_log* -mtime +1 -exec rm -rf {} \;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31439444/viewspace-2672932/ ,如需转载,请注明出处,否则将追究法律责任。