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

Re: [Sheflug] shell script challenge



On Wed, Jul 23, 2003 at 11:32:17PM +0100, Simon Brown wrote:
> Hi,
> 
> A quick and simple challenge for all the shell scripting gurus out there.

is Perl allowed?

> 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.

-- 
"Emacs isn't a bad OS once you get used to it.
It just lacks a decent editor."
___________________________________________________________________

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

  GNU the choice of a complete generation.