How can i delete a file from the directory which is 2 weeks old from the current date using the shell script
and this script will be assigned to the crontab so date calculation should be dynamically done.
i need a script whihc loops thru all the files in a folder and checks out its timestamp and compare it with current date of the system and delete those files which are 2 weeks old or more
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.