Jan 27 2023

Delete old files

Find only executable
find

-executable -type f

Delete old files

find /path/to/dir/ ( ( -type f -daystart -mtime +8 ) -o -type d -empty ) -delete

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.