Need a shell script to gzip files by date.
Posted on 2006-05-25
I need a shell script that can compress files using gzip by modified date.
So orignally I have some 108,000 files dated from 01-01-2005 to current date. I would like the outcome to be a collection of zip files for each month and year, so I have one zip file that contains all my original files with modified dates ranging from 01-01-2005 to 01-31-2005. Then I would have another zip file for all my original files with modified dates ranging from 02-01-2005 to 02-29-2005 and so on. I would also like the oringal files deleted after sucessfull compression.