Hi guys i am having following files in a directory
a_date file will be created on a day to day basics so that it may pileup on a long go.So i need to create a logic so that the files will be gunzipped to a backup directory.If i run the prog by Aug 6 am Ct then it should contain the files of July month.these files are saved under the dir of july month.i need to create directory dynamically
for e.x
under this i ll have all the files of as /Jan
/Feb and so on.
under this i ll have all the files of as /
Hello All,
I want to delete the files based on the days. like, Files available under directory /abc want to delete if they are older than 15 days.
Files available under directory /pqr want to delete if they are 7 days old and some files under directory /xyz should get deleted if they are... (5 Replies)
Hi,
Need to change the following command to also purge the child directories after /data/tmp within one command (recursively check for X number of days old files and purge accordingly)?
e.g. /data/tmp/a, /data/tmp/a/b, /data/tmp/log.
find /data/tmp -type f -mtime +7 -exec rm -f {} \;
... (2 Replies)