From owner-freebsd-questions@FreeBSD.ORG Fri Dec 5 09:48:40 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 A2D351065677 for ; Fri, 5 Dec 2008 09:48:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 13E678FC0A for ; Fri, 5 Dec 2008 09:48:39 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from lack-of-gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mB59mHEM007911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Dec 2008 09:48:24 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mB59mHEM007911 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1228470504; bh=B49sbis47hMa9p zv0pmbMcPIKa0FFIZbZLCDMgbJe+g=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type: Content-Transfer-Encoding:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4938F8E0.2 040908@infracaninophile.co.uk>|Date:=20Fri,=2005=20Dec=202008=2009: 48:16=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User-Agent:=20Thunderbird= 202.0.0.18=20(X11/20081202)|MIME-Version:=201.0|To:=20Peter=20Boost en=20|CC:=20mcoyles@horbury.wakefield.sch.uk,=20 freebsd-questions@freebsd.org|Subject:=20Re:=20Mass=20find/replace. ..|References:=20<002b01c95609$ed0c7200$c7255600$@wakefield.sch.uk> =09<1228395500.2781.41.camel@frodon.be-bif.ulb.ac.be>=09<2008120505 51.32850.fbsd.questions@rachie.is-a-geek.net>=09<004c01c956ba$56497 410$02dc5c30$@wakefield.sch.uk>=20<4938F4E8.8030304@boosten.org>|In -Reply-To:=20<4938F4E8.8030304@boosten.org>|X-Enigmail-Version:=200 .95.6|Content-Type:=20text/plain=3B=20charset=3DUTF-8=3B=20format=3 Dflowed|Content-Transfer-Encoding:=207bit; b=zkTfrDAkSM3QyLCxnbj5na PEsXsoUrV3EGJ97XmUMJ439D8FD07xe7YtQm00kFpodkFqKBSbvjxuy5W6vuNGBjfyP dIobO6of3ZHWTIn33c8PXYwRkCIwMb5durhfugGdTFH6MUfEvNQeTwekFKm2I8UllCn LqJ04VFYPDN3C2s= Message-ID: <4938F8E0.2040908@infracaninophile.co.uk> Date: Fri, 05 Dec 2008 09:48:16 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.18 (X11/20081202) MIME-Version: 1.0 To: Peter Boosten References: <002b01c95609$ed0c7200$c7255600$@wakefield.sch.uk> <1228395500.2781.41.camel@frodon.be-bif.ulb.ac.be> <200812050551.32850.fbsd.questions@rachie.is-a-geek.net> <004c01c956ba$56497410$02dc5c30$@wakefield.sch.uk> <4938F4E8.8030304@boosten.org> In-Reply-To: <4938F4E8.8030304@boosten.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [81.187.76.162]); Fri, 05 Dec 2008 09:48:24 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8722/Fri Dec 5 04:32:54 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: mcoyles@horbury.wakefield.sch.uk, freebsd-questions@freebsd.org Subject: Re: Mass find/replace... 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: Fri, 05 Dec 2008 09:48:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Peter Boosten wrote: | Marc Coyles wrote: |> I'm presuming it'd be: |> |> Find /home/horbury -type f -name "*.bak" -exec \ |> Rm *.bak |> | | find /home/horbury -name "*.bak" -exec rm {} \; | find /home/horbury -type f -name '*.bak' -delete 'delete' is a find primitive -- no need to exec any other processes. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkk4+OAACgkQ3jDkPpsZ+VbPwACfUrggUN1yIPqkq3pgCyy6fFzH sncAn2WW0XD9l9NgNtK4T2IiMqoyxY6f =1CX6 -----END PGP SIGNATURE-----