Shell Script to Delete Files Older than 3 Days
Posted on 2011-03-25
I am trying to write a shell script (bash) that looks at the date field in a file and deletes files older than 3 days. I know I need to use find/PATH and the rm also in the script to remove the files but I don't know what options to use that will identify the files to be removed.
Can anyone point me in the right direction?