From owner-freebsd-questions@FreeBSD.ORG Fri Jan 27 18:34:49 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 668B716A420 for ; Fri, 27 Jan 2006 18:34:49 +0000 (GMT) (envelope-from gollum123@free.fr) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0254543D79 for ; Fri, 27 Jan 2006 18:34:48 +0000 (GMT) (envelope-from gollum123@free.fr) Received: from [192.168.0.140] (tui75-2-82-229-178-102.fbx.proxad.net [82.229.178.102]) by smtp1-g19.free.fr (Postfix) with ESMTP id B02BC6E8CC; Fri, 27 Jan 2006 19:34:46 +0100 (CET) Date: Fri, 27 Jan 2006 16:01:27 +0100 From: Mathieu CHATEAU X-Mailer: The Bat! (v3.62.12) Professional X-Priority: 3 (Normal) Message-ID: <564274847.20060127160127@free.fr> To: Olivier Nicole In-Reply-To: <200601270200.k0R20orV050840@banyan.cs.ait.ac.th> References: <20060126081925.5085916A443@hub.freebsd.org> <000901c622b2$03b3dcc0$0807a8c0@admin> <43D92DD9.1080304@infracaninophile.co.uk> <200601270200.k0R20orV050840@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: illoai@gmail.com, freebsd-questions@freebsd.org Subject: Re[2]: Elegant delete of word ~tmp files in all sub / dirs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mathieu CHATEAU List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 18:34:49 -0000 Hello Olivier, useless to do -r while you search only files (-type f) the delete function of find seems more apropriate to me Mathieu CHATEAU Friday, January 27, 2006, 3:00:50 AM, you wrote: >> > > removing all the word ~tmp files on our Samba >> > > server >> > >> > find /your/file-system -type f -name '*~tmp*' -print0 | xargs -0 rm -f >> > >> > or something like that. >> > >> >> find /your/file-system -type f -name '*~tmp*' -delete ON> Or, Graham wanted something with {} ON> find /your/file-system -type f -name '*~tmp*' -exec /bin/rm -rf {} \; ON> Olivier ON> _______________________________________________ ON> freebsd-questions@freebsd.org mailing list ON> http://lists.freebsd.org/mailman/listinfo/freebsd-questions ON> To unsubscribe, send any mail to ON> "freebsd-questions-unsubscribe@freebsd.org"