•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 392,099 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,817 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 365 | Replies: 1
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
Other Threads in the Shell Scripting Forum
- Previous Thread: Colors in bash
- Next Thread: Color first line of results


Linear Mode