====== BASH - Find - Find and delete files after a certain time ====== find /path/to/folder -type f -name "" -mtime + -exec {} \; ---- Example usage: find /var/spool/somedir/someotherdir -type f -name "msg*" -mtime +30 -exec rm {} \;
find /path/to/folder -type f -name "" -mtime + -exec {} \;
find /var/spool/somedir/someotherdir -type f -name "msg*" -mtime +30 -exec rm {} \;