Shell script trouble

Associate
Joined
31 Oct 2006
Posts
2,004
Ok. Writing a shell script to tidy up a directory on a server I have.

I have logs in folders going back till mid 2006.

They are arranged like:

./log/2007/10/22/log1
./log/2007/10/22/log2
./log/2007/10/22/log3
./log/2007/10/22/log4
./log/2007/10/23/log1
./log/2007/10/23/log2
./log/2007/10/23/log3
./log/2007/10/23/log4

and I want to copy any files over a month old to /spare while still retaining this file structure.

Doable?
 
Back
Top Bottom