From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 15:47:25 2004 Return-Path: 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 CFA4816A4CE for ; Fri, 9 Apr 2004 15:47:25 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CBCD43D54 for ; Fri, 9 Apr 2004 15:47:25 -0700 (PDT) (envelope-from walterk1@earthlink.net) Received: from user-0c6s0dt.cable.mindspring.com ([24.110.1.189] helo=earthlink.net) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BC4mT-0004c5-00; Fri, 09 Apr 2004 15:47:25 -0700 Message-ID: <407727FE.7040102@earthlink.net> Date: Fri, 09 Apr 2004 17:47:26 -0500 From: Walter User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: f-questions , parv@pair.com References: <405640BE.9000102@earthlink.net> <20040315235943.GA55958@falcon.midgard.homeip.net> <40564606.3020504@earthlink.net> <20040316035734.GC3419@moo.holy.cow> <20040316041933.GA4098@moo.holy.cow> <40571A35.7040702@earthlink.net> <20040320012555.GA3514@moo.holy.cow> In-Reply-To: <20040320012555.GA3514@moo.holy.cow> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: deleting directories with ??? in name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 22:47:25 -0000 Hi Parv, It looks like another directory structure has appeared in the ftp directory that Lynx does not "see" and that find . -inum -delete does not delete. It does have a dot as the first character, with some other non-printing characters, but no "/". I haven't yet tried to delete it with emacs or Midnight Commander. Do you still want to look at it?? If so, as I'm not overly conversant with tar (or too much else that's *nix), please send me the 'tar' command you'd like me to archive the directory structure with, and I'll send the result. I'm not subscribed to the List, so please CC me. Thanks. Walter Parv wrote: > in message <40571A35.7040702@earthlink.net>, > wrote Walter thusly... > > > I apologize for the late reply. > > > >>Parv wrote: >> >> >>> # find . \( -inum -o -inum \) -print0 \ >>> # | xargs -0 rm -rfv >>> >> >>Thanks, but when I did: >>ls -i >>and then typed in the inode in the command (saved in an old List >>e-mail): >>find . -inum -delete >>it didn't delete them. Do you think your way would work where >>manual command wouldn't? But, they are gone now, so I can't try >>it anyway. > > > My _speculation_ is that if '-delete' option did not work from w/in > find(1), i doubt that above quoted command chain would cause any > difference. I suppose, you also guessed the same. OTOH, the > description of -delete option does say... > > -delete > ... It will not attempt to delete a filename with a ``/'' > character in its pathname relative to ``.'' for security > reasons. > > > ...that is one thing to consider. > > > It would have been fun to experiment w/ the offending directory > structure. Next time it happens, send me a sample/small tar'd copy, > will you? > > > - Parv >