find: missing argument to `-exec'

man find 

发现 花括号要加 ''  

find ${LOG_BASE_DIR}$dir/ -type f -mtime +${KEEP_DAYS} -name ${LOG_REG} -exec rm -f '{}' ;
原文地址:https://www.cnblogs.com/allenhaozi/p/4772853.html