From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 20:21:30 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 C452F1065671 for ; Mon, 14 Jul 2008 20:21:30 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id B128D8FC16 for ; Mon, 14 Jul 2008 20:21:30 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [127.0.0.1] (localhost [127.0.0.1]) by a.cs.okstate.edu (Postfix) with ESMTP id F2058154CC7; Mon, 14 Jul 2008 15:21:29 -0500 (CDT) Message-ID: <487BB547.8020307@cs.okstate.edu> Date: Mon, 14 Jul 2008 15:21:27 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: Gary Kline References: <20080714201241.GA22443@thought.org> In-Reply-To: <20080714201241.GA22443@thought.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List 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:21:30 -0000 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?