From: Kyle Schmitt Date: 2008-01-15T02:10:13+09:00 Subject: Re: Counting the files in a directory.... Robert, The script itself won't be run as routinely as the directories are rotated. The directories have a daily rotation so there are only the most recent 10 days available at once, but the script itself may only be invoked once or twice in a month, at most. I understand that the size of the directory itself is a problem, but I was hoping that somehow there was a way to get a simple, more efficient count. I know the b-tree based file systems are somewhat new in unix & unix-like systems, I was just hoping there was some more efficient way :) The script itself (as it stands now, albeit slower than I would have liked) does the following: With no arguments, lists the number of quarantined and spam messages being held, for each day. With a date, lists the file names of the quarantined messages, as well as their recipients. With a date and the file name of a quarantined message, warns the user, asks them if they want to continue, then moves the message back into the appropriate queue to be delivered. Thanks --Kyle