Nettet12. okt. 2015 · I used the below command to delete files older than a year. find /path/* -mtime +365 -exec rm -rf {} \; But now I want to delete all files whose modified time is … Nettet23. nov. 2024 · If you want to delete all files named file-name-*, you can use: We can also specify multiple files using regular expressions. If we want to delete three files that …
How To Delete Files Older Or Newer Than N Days Using find (With E…
Nettet23. jul. 2015 · The first will delete files 4 hours old or older using the built-in delete function of find; and the second will delete files 30 days old or older using an rm … NettetI would like to delete files that are older than 59 minutes. I have this so far: find /tmp -daystart -maxdepth 1 -mmin +59 -type f -name "*.*" -exec rm -f {} \; This doesn't work … shire plus indy
Elimina i file più vecchi di X giorni su Raspberry Pi
Nettet30. aug. 2016 · I had been using the following command, but this will also check / delete all located sub-folders which are bound to their main directories: find /path/ -mtime +14 … Nettet27. apr. 2010 · Requirement is to list the files older than 365 days from multiple directories and delete them and log the list of files which are deleted to a log file. so 1 script should only list files older than 365 days for each directory separately to a folder The other script should read these files... 3. UNIX for Dummies Questions & Answers NettetHere we will guide you on how to delete files older than X days with the help of File Explorer, so follow the steps carefully. Step 1. Press the Win + E keys to open File … shire plc merger