Date: Mon, 14 Jul 2008 17:20:42 -0500 From: David Kelly <dkelly@hiwaay.net> To: Gary Kline <kline@thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: why is this script failing? Message-ID: <20080714222042.GA17230@Grumpy.DynDNS.org> In-Reply-To: <20080714215626.GA28814@thought.org> References: <20080714201241.GA22443@thought.org> <20080714210924.GA16869@Grumpy.DynDNS.org> <20080714215626.GA28814@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080714222042.GA17230>