On Monday 14 July 2008 22:12:47 Gary Kline wrote:
>       people,
>
>       for reasons i don't understand completely, i wind up with
>       *wav* files in my /tmp/kde-kline/* directory. plus othr misc junk
>       files.
>
>       why is this script not finding them?
>
>
> wav=/tmp/kde-kline/\*wav\*
>
> if [ -s $wav ]

Hint: this works, if there's only 1 wav file.
The way to do it:
if test ! -z "$wav"; then
        for f in $wav; do
                rm $f
        done
else
        echo "No wav files"
fi

-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to