From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 06:56:49 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 C659F106564A for ; Tue, 15 Jul 2008 06:56:49 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id C71388FC29 for ; Tue, 15 Jul 2008 06:56:48 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m6F5b2EA001664 for ; Tue, 15 Jul 2008 07:37:02 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m6F5b2wY001661; Tue, 15 Jul 2008 07:37:02 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 15 Jul 2008 07:37:02 +0200 (CEST) From: Wojciech Puchar To: Gary Kline In-Reply-To: <20080714201241.GA22443@thought.org> Message-ID: <20080715073651.P1638@wojtek.tensor.gdynia.pl> References: <20080714201241.GA22443@thought.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Tue, 15 Jul 2008 06:56:49 -0000 > > why is this script not finding them? > > > wav=/tmp/kde-kline/\*wav\* why you put \ before * > > 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 > > > -- > Gary Kline kline@thought.org www.thought.org Public Service Unix > http://jottings.thought.org http://transfinite.thought.org > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >