Back in my UNIX scripting days, I scripted a process to work just like GDG's. It is predicated on having the date in the file name.
Create a file with the date stamp (YYYYMMDD) in the name (include time if you run it multiple times every day). After you create the file, a clean up process is run. I ran it as part of the script that created the new file so the directory was self managing. ls /data/your_file_name_* Pipe to sort (sort descending) Pipe to AWK and execute delete commands after a specific line count. As I recall, it was basically a one line pipe to delete the oldest versions of the file. The number of files to keep was stored in an environment variable that was set by file name pattern. I'm sure there's an equivalent in LINUX, I just don't know what it would be. I'm still trying to find that script. If I find it, I'll send it to the list. It's pretty crude, but it works. ------------------------------------------------------------------------------ This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. OppenheimerFunds may, at its sole discretion, monitor, review, retain and/or disclose the content of all email communications. ============================================================================== ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
