Mrz 15, 2010
Dateien Löschen, die älter sind als x Tage
“The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.”
find /path/to/files* -mtime +5 -exec rm {} \;
Gefällt Dir der Artikel?
Dann würde ich mich freuen, wenn Du ihn twitterst, likest oder plusst. Danke!






Kommentar geschrieben am 15.03.2010
[...] Dateien Löschen, die älter sind als x Tage http://www.mizine.de/allgemein/dateien-loschen-die-alter-sind-als-x-tage/ Tags: daily, [...]