On Mon, Jul 14, 2008 at 01:12:47PM -0700, Gary Kline wrote:
> why is this script not finding them?
> if [ -s $wav ]
As others have pointed out because if "/tmp/kde-kline/file1.wav
/tmp/kde-kline/file2.wav" is found the -s will fail because $wav isn't a
single file. Or it could be that your escaped wildcards are staying
I use something like this to move files out of a Maildir:
for i in /tmp/kde-kline/*wav
# if nothing or nonsense was found then $i won't exist
if [ -e $i ]
echo "Found " $i
But why do it the hard way?
/bin/rm /tmp/kde-kline/*wav > /dev/null 2>&1
David Kelly N4HHE, [EMAIL PROTECTED]
Whom computers would destroy, they must first drive mad.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"