Deleting files older than x number of day

Below is the linux command to delete files older than 3 days with extension .trc:

find . -type f -name '*.trc' -mtime +3 | xargs -i -t rm {}

Leave a Reply

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