From owner-freebsd-questions@FreeBSD.ORG Mon Jan 30 05:57:20 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 5108816A420 for ; Mon, 30 Jan 2006 05:57:20 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EB3543D45 for ; Mon, 30 Jan 2006 05:57:18 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.12.11/8.12.11) with ESMTP id k0U5s9Hc045485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Jan 2006 12:54:09 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.1/8.12.11) id k0U5ucxa035109; Mon, 30 Jan 2006 12:56:38 +0700 (ICT) Date: Mon, 30 Jan 2006 12:56:38 +0700 (ICT) Message-Id: <200601300556.k0U5ucxa035109@banyan.cs.ait.ac.th> From: Olivier Nicole To: gollum123@free.fr In-reply-to: <564274847.20060127160127@free.fr> (message from Mathieu CHATEAU on Fri, 27 Jan 2006 16:01:27 +0100) References: <20060126081925.5085916A443@hub.freebsd.org> <000901c622b2$03b3dcc0$0807a8c0@admin> <43D92DD9.1080304@infracaninophile.co.uk> <200601270200.k0R20orV050840@banyan.cs.ait.ac.th> <564274847.20060127160127@free.fr> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: illoai@gmail.com, 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: Mon, 30 Jan 2006 05:57:20 -0000 Hi Mathieu, > useless to do -r while you search only files (-type f) > the delete function of find seems more apropriate to me But the -exec mode is more general (understand you put whatever command you want there) and beside, the first question was refeering to a syntax using {}. But I guess that Graham has already deleted all his directories anyway :) Olivier