From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 01:42:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05CAB1065675 for ; Wed, 16 Jul 2008 01:42:16 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7AE8FC13 for ; Wed, 16 Jul 2008 01:42:15 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 26246 invoked from network); 15 Jul 2008 20:42:15 -0500 Received: from 203-166-248-146.dyn.iinet.net.au (HELO ayiin) (203.166.248.146) by sigma.octantis.com.au with (DHE-RSA-AES128-SHA encrypted) SMTP; 15 Jul 2008 20:42:15 -0500 Date: Wed, 16 Jul 2008 11:42:10 +1000 From: Norberto Meijome To: freebsd-questions@freebsd.org Message-ID: <20080716114210.59372334@ayiin> In-Reply-To: <20080715215024.GA82902@thought.org> References: <20080714201241.GA22443@thought.org> <20080715073651.P1638@wojtek.tensor.gdynia.pl> <20080715183500.GA76088@thought.org> <20080715190224.GC21840@Grumpy.DynDNS.org> <20080715215024.GA82902@thought.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: why is this script failing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2008 01:42:16 -0000 On Tue, 15 Jul 2008 14:50:24 -0700 Gary Kline wrote: > thanks for this clarification! until yesterday, whe you > mmentioned blanks[whitespace], as id a song title, i hadn't > tought about songs like "Not Ready to Make Nice.ogg" e.g. > I am not sure why these players store the song in wav format > without deleting the files, but when my limited /tmp is full, > certain aps fail mysteriously. with a fwdozen more line of code > they could at least fail more gracefully. you can always do find /tmp/kde-*/ -iname "*wav" -print0 | xargs -0 rm -vf the advantage over doing using rm * or for * in ... is that if you have LOTS of files, the expanded list of files may be too much. find | xargs will deal with each file in turn. ( -print0 and -0 is to use NULL char as a list delimiter instead of space... ). _________________________ {Beto|Norberto|Numard} Meijome "A problem cannot be solved with the same type of thinking that created it." Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.