Date: Fri, 19 Mar 2004 20:25:55 -0500 From: Parv <parv@pair.com> To: Walter <walterk1@earthlink.net> Cc: 'Questions' <freebsd-questions@FreeBSD.org> Subject: Re: deleting directories with ??? in name Message-ID: <20040320012555.GA3514@moo.holy.cow> In-Reply-To: <40571A35.7040702@earthlink.net> References: <405640BE.9000102@earthlink.net> <A99A5AC30F74624388EE5F757BA58A20D7A27C@RED-MSG-50.redmond.corp.microsoft.com> <20040315235943.GA55958@falcon.midgard.homeip.net> <40564606.3020504@earthlink.net> <20040316035734.GC3419@moo.holy.cow> <20040316041933.GA4098@moo.holy.cow> <40571A35.7040702@earthlink.net>
next in thread | previous in thread | raw e-mail | index | archive | help
in message <40571A35.7040702@earthlink.net>, wrote Walter thusly... > I apologize for the late reply. > Parv wrote: > > > # find . \( -inum <inode-1> -o -inum <inode-2> \) -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 <inode> -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 --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040320012555.GA3514>