From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 20:34:15 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 DC0731065677 for ; Mon, 14 Jul 2008 20:34:15 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id BC11E8FC08 for ; Mon, 14 Jul 2008 20:34:15 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id B8BEF1CD94; Mon, 14 Jul 2008 12:34:14 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 14 Jul 2008 22:34:02 +0200 User-Agent: KMail/1.9.7 References: <20080714201241.GA22443@thought.org> In-Reply-To: <20080714201241.GA22443@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807142234.03070.fbsd.questions@rachie.is-a-geek.net> Cc: Gary Kline 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: Mon, 14 Jul 2008 20:34:15 -0000 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.