From owner-freebsd-questions@FreeBSD.ORG Thu Jan 26 20:15:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 3DD7116A420 for ; Thu, 26 Jan 2006 20:15:32 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1615F43D45 for ; Thu, 26 Jan 2006 20:15:30 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.4/8.13.4) with ESMTP id k0QKFLoX097930; Thu, 26 Jan 2006 20:15:21 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <43D92DD9.1080304@infracaninophile.co.uk> Date: Thu, 26 Jan 2006 20:15:21 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 To: Graham Bentley References: <20060126081925.5085916A443@hub.freebsd.org> <000901c622b2$03b3dcc0$0807a8c0@admin> In-Reply-To: <000901c622b2$03b3dcc0$0807a8c0@admin> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigDCE5BA6BC8618647749D12E3" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 26 Jan 2006 20:15:21 +0000 (GMT) X-Virus-Scanned: ClamAV 0.88/1252/Thu Jan 26 11:03:25 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Elegant delete of word ~tmp files in all sub / dirs 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: Thu, 26 Jan 2006 20:15:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDCE5BA6BC8618647749D12E3 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Graham Bentley wrote: > Hi All, >=20 > I once found a very elegant method of recursively > removing all the word ~tmp files on our Samba > server (many hundereds of subs) >=20 > It involved find rm xargs and some {} >=20 > It worked very quickly indeed. I have tried to > find this again but cant and have used alternatives > that are alot slower. >=20 > Any CLI Gurus point me in the path of enlightenment ? find /your/file-system -type f -name '*~tmp*' -print0 | xargs -0 rm -f= or something like that. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigDCE5BA6BC8618647749D12E3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD2S3Z8Mjk52CukIwRA6vPAJ9s5dO98vgaTDCLr/DPa4FLSnyBdgCeMBxO gKk0IVB+aAucabT8S4o8o9s= =vpbj -----END PGP SIGNATURE----- --------------enigDCE5BA6BC8618647749D12E3--