#!/bin/bash
find /picture/*.png* -type f -mtime +15 -exec rm {} \;
fiind /mnt -type f -mtime +15 -name *.png -exec rm {} \;
写一个脚本,查找15天前以png结尾的文件并删除
最新推荐文章于 2022-10-04 01:22:00 发布
#!/bin/bash
find /picture/*.png* -type f -mtime +15 -exec rm {} \;
fiind /mnt -type f -mtime +15 -name *.png -exec rm {} \;