[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] shell script challenge



Hi,

A quick and simple challenge for all the shell scripting gurus out there.
Using any of the shells available for Debian, I would like to acheieve the following to archive my mailing lists. All of my mailing list mail goes into a directory called lists with the file being the list name, so this list is lists/shef-lug [at] list.sheflug.org.uk I'll be running the script once a month and I'd like it to move the files into a directory called "last month" The files from the month before that are already there should then be moved into a directory called archive, gzipped and then put into a sub directory according to month year eg archive/2003/January/shef-lug [at] list.
sheflug.org.uk.gz I'll be running it with cron. I've tried it before but only failed miserably. Any hints?

Simon
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

GNU the choice of a complete generation.