man find 

发现 花括号要加 ''  

 

find ${LOG_BASE_DIR}$dir/ -type f -mtime +${KEEP_DAYS} -name ${LOG_REG} -exec rm -f '{}' \;

 

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2021-09-17
  • 2022-12-23
  • 2021-08-15
猜你喜欢
  • 2022-01-17
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
相关资源
相似解决方案