From owner-freebsd-questions@FreeBSD.ORG Fri Jan 27 17:06:07 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 6966B16A422 for ; Fri, 27 Jan 2006 17:06:07 +0000 (GMT) (envelope-from shantanoo@ghar.dhoomketu.net.in) Received: from iqara.net (sendmail.iqara.net [203.187.192.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 246C743D49 for ; Fri, 27 Jan 2006 17:06:00 +0000 (GMT) (envelope-from shantanoo@ghar.dhoomketu.net.in) Received: (qmail 8892 invoked from network); 27 Jan 2006 17:06:20 -0000 Received: from unknown (HELO ghar.dhoomketu.net.in) ([219.91.153.219]) (envelope-sender ) by iqara.net (qmail-ldap-1.03) with SMTP for ; 27 Jan 2006 17:06:20 -0000 Received: by ghar.dhoomketu.net.in (Postfix, from userid 1001) id 29F6C5C4A; Fri, 27 Jan 2006 22:05:07 +0530 (IST) Date: Fri, 27 Jan 2006 22:05:07 +0530 From: Shantanoo Mahajan To: Matthew Seaman Message-ID: <20060127163506.GA1020@ghar.dhoomketu.net.in> Mail-Followup-To: Matthew Seaman , Graham Bentley , freebsd-questions@freebsd.org References: <20060126081925.5085916A443@hub.freebsd.org> <000901c622b2$03b3dcc0$0807a8c0@admin> <43D92DD9.1080304@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <43D92DD9.1080304@infracaninophile.co.uk> Organization: Hmmm... I dunno X-OS: FreeBSD 6.0-SECURITY i386 X-UPTIME: 10:03PM up 11 mins, 0 users, load averages: 0.67, 0.35, 0.17 X-Mailer-Website: http://www.mutt.org X-GPG-Fingerprint: 614C 591B D401 98ED 1EF1 8BCF 30A1 5685 07A6 AA4B User-Agent: mutt-ng/devel-r581 (FreeBSD) Cc: Graham Bentley , 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: Fri, 27 Jan 2006 17:06:07 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable +++ Matthew Seaman [freebsd] [26-01-06 20:15 +0000]: | 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 ? |=20 | find /your/file-system -type f -name '*~tmp*' -print0 | xargs -0 rm -f |=20 | or something like that. You may also try: find /your/file-system -type f -name '*~tmp*' -delete --=20 --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2ku6MKFWhQemqksRAiCwAJ4jwAG1Uaol49umF2ohdZzqvAnbPgCeNryi tFTGVEH+REooDYMsXbcKgYg= =TdZD -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--