why is this script failing?
Mel
fbsd.questions at rachie.is-a-geek.net
Mon Jul 14 20:34:15 UTC 2008
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.
More information about the freebsd-questions
mailing list