I have a list of +30.000 directory and I have to delete all the directories and their content from 2005 to 2006, via terminal. Thanks for help
I have a list of +30.000 directory and I have to delete all the directories and their content from 2005 to 2006, via terminal. Thanks for help
If I understood you correctly, you can use the following command:
This will remove all files/folders that are older than 10 days. There are other options like
-atime
. You can seeman find
for more info.If you have GNU
find
, you can do this:Use
-ls
instead of-delete
to test.