Please I need to find all files before 1/1/2017 and delete them on Linux platform
I have searched and found this find ./ -type f -mtime -exec rm -rf {} \; so how to specify the above date
Please I need to find all files before 1/1/2017 and delete them on Linux platform
I have searched and found this find ./ -type f -mtime -exec rm -rf {} \; so how to specify the above date
I hope these commands help
touch -d "2010-11-21 23:59:59" /tmp/date.start;
touch -d "2010-11-23 00:00:00" /tmp/date.end;
find ./ -type f -newer /tmp/date.start ! -newer /tmp/date.end -exec rm {} \;