why is this script failing?
Reid Linnemann
lreid at cs.okstate.edu
Mon Jul 14 20:21:30 UTC 2008
Written by Gary Kline on 07/14/08 15:12>>
> 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 ]
> then
> echo "Wav files found";
> ls -l $wav;
>
> /bin/rm ${wav};
> else
> echo "No wav files in /tmp/kde-kline";
> exit 0;
>
> fi
>
> do i have to cd to /tmp/kde-kline and examine every file in a
> loop?
>
> tia,
>
> gary
>
>
Could you give a listing of files you expect to be found and deleted by
this script?
More information about the freebsd-questions
mailing list