why is this script failing?
David Kelly
dkelly at hiwaay.net
Mon Jul 14 22:20:44 UTC 2008
On Mon, Jul 14, 2008 at 02:56:27PM -0700, Gary Kline wrote:
>
> But as you point out, the followingisthat much more effective.
> or at least lesss typing.
>
> >
> > But why do it the hard way?
> >
> > #!/bin/sh
> > /bin/rm /tmp/kde-kline/*wav > /dev/null 2>&1
>
> with this,
> >
> > /bin/rm /tmp/kde-kline/*log > /dev/null 2>&1
The other advantage of the simple version above is that it handles
spaces in the file name. The others need a bit more care to make sure
spaces are quoted else they will separate arguments in the shell
interpreter.
--
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.
More information about the freebsd-questions
mailing list