From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 20:34:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CCD816A4CE for ; Tue, 24 Feb 2004 20:34:02 -0800 (PST) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 852B343D1F for ; Tue, 24 Feb 2004 20:34:02 -0800 (PST) (envelope-from aardvark@saintaardvarkthecarpeted.com) Received: from pd3mr1so.prod.shaw.ca (pd3mr1so-ser.prod.shaw.ca [10.0.141.177])2003))freebsd-questions@freebsd.org; Tue, 24 Feb 2004 21:31:54 -0700 (MST) Received: from pn2ml4so.prod.shaw.ca (pn2ml4so-qfe0.prod.shaw.ca [10.0.121.148]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HTM006S9HWQP1@l-daemon> for freebsd-questions@freebsd.org; Tue, 24 Feb 2004 21:31:38 -0700 (MST) Received: from francisco.saintaardvarkthecarpeted.com (h24-87-202-31.vc.shawcable.net [24.87.202.31]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HTM0030BHWP0X@l-daemon> for freebsd-questions@freebsd.org; Tue, 24 Feb 2004 21:31:38 -0700 (MST) Received: from hardesty.hardesty.saintaardvarkthecarpeted.com (hardesty.saintaardvarkthecarpeted.com [192.168.23.1]) by francisco.saintaardvarkthecarpeted.com (8.12.10/8.12.10) with ESMTP id i1P4VxE8004168; Tue, 24 Feb 2004 20:32:00 -0800 Received: from aardvark by hardesty.hardesty.saintaardvarkthecarpeted.com with local (Exim 3.36 #1 (Debian)) id 1Avqhu-0006t8-00; Tue, 24 Feb 2004 20:31:38 -0800 Date: Tue, 24 Feb 2004 20:31:38 -0800 From: Saint Aardvark the Carpeted In-reply-to: <20040224161836.6a000415@vixen42> Sender: Debian User To: Vulpes Velox Message-id: <20040225043138.GB23994@hardesty.saintaardvarkthecarpeted.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.5.1+cvs20040105i References: <20040224161836.6a000415@vixen42> cc: freebsd-questions@freebsd.org Subject: Re: file selector and shell scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 04:34:02 -0000 Vulpes Velox disturbed my sleep to write: > I am currently working on putting together a shell script to allow me > to save files with certian extensions under firefox and then run a few > commands on them... the problem I am running into is there I can't > seem to find any thing to take care of the file selector part... I think find(1) might be what you're after. It has a zillion options, but a good example would be: find /usr/local/lib -name \*.so -exec rm {} \; which finds all the .so files in /usr/local/lib and removes them. Note: Do NOT remove all your .so files. :-) Hugh -- Saint Aardvark the Carpeted aardvark@saintaardvarkthecarpeted.com Because the plural of Anecdote is Myth.