Hi !
I am newish to scripting.
I have inherited an Apple Xserve running 10.4.11 server
There is a script run each night that creates an zipped archive of some data.
These can be quite large so I have to prune them regularly.
I need to check that the youngest file was last nights file.
I then need to check its size against previous files and if it is the same size or larger, then I can remove some of the previous files.

I know how to compare sizes and get rid of files older than a "time period", but I dont know how to glue this together. Can anyone assist please.

Regards and TIA

ivor

Which part are you having trouble with?

I would have to know a little bit more about the naming scheme of your zip files and etc.