From owner-freebsd-hackers Thu May 30 19:33:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from server1.wojo.com (server1.wojo.com [66.36.30.130]) by hub.freebsd.org (Postfix) with ESMTP id 1CFE537B401 for ; Thu, 30 May 2002 19:33:20 -0700 (PDT) Received: by server1.wojo.com (Postfix, from userid 502) id 11E563C4E; Thu, 30 May 2002 22:33:19 -0400 (EDT) Received: from ishadow (pc3-oxfo3-0-cust229.oxf.cable.ntl.com [213.107.68.229]) by server1.wojo.com (Postfix) with ESMTP id C6B2B3B43 for ; Thu, 30 May 2002 22:33:16 -0400 (EDT) Reply-To: From: "Robin Breathe" To: Subject: RE: find(1) - peculiar behaviour Date: Fri, 31 May 2002 03:33:18 +0100 Message-ID: <000101c2084b$86bce150$026ca8c0@ishadow> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <000001c20849$c6878440$026ca8c0@ishadow> Importance: Normal X-Spam-Status: No, hits=-1.2 required=5.0 tests=IN_REP_TO,AWL version=2.20 X-Spam-Level: X-Sanitizer: Anomy Sanitizer Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I wrote: > The problem is that `find -L . -type l -print` reports only the "dud" > symlinks, but `find -L . -type l -delete` removes ALL symlinks... which > is clearly not the desired behaviour. I've just realised this is mentioned under BUGS in man 1 find, so my query changes to: "anyone fancy fixing it and/or giving me some pointers on how to fix it", or maybe suggest a better way for me to do this? "find -L . -type l -exec rm '{}' \;" strikes me as likely to be the fastest alternative... though it's not very pretty ;) - Robin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message