Hey all,
Can anyone tell me the correct command to delete a file thats over x amount of days old automatically?
Thanks in advance
Hey all,
Can anyone tell me the correct command to delete a file thats over x amount of days old automatically?
Thanks in advance
easy, you can use "find" to do this
find ./ -ctime +3 | xargs rm
find anything older than 3 days under current dir and delete it
exactly what i needed thanks
Bookmarks