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 {}