Date: Fri, 27 Jan 2006 22:05:07 +0530 From: Shantanoo Mahajan <shantanoo@gmail.com> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: Graham Bentley <gbentley@uk2.net>, freebsd-questions@freebsd.org Subject: Re: Elegant delete of word ~tmp files in all sub / dirs Message-ID: <20060127163506.GA1020@ghar.dhoomketu.net.in> In-Reply-To: <43D92DD9.1080304@infracaninophile.co.uk> References: <20060126081925.5085916A443@hub.freebsd.org> <000901c622b2$03b3dcc0$0807a8c0@admin> <43D92DD9.1080304@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060127163506.GA1020>