From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 13:34:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4E2A516A4CF for ; Thu, 5 May 2005 13:34:19 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j45DYFOB010840 for ; Thu, 5 May 2005 09:34:15 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j45DYFEf010839 for freebsd-hackers@freebsd.org; Thu, 5 May 2005 09:34:15 -0400 (EDT) (envelope-from green) Date: Thu, 5 May 2005 09:34:15 -0400 From: Brian Fundakowski Feldman To: freebsd-hackers@freebsd.org Message-ID: <20050505133415.GC77223@green.homeunix.org> References: <427A014D.6020809@dnainternet.net> <20050505114206.GA86050@freebie.xs4all.nl> <427A07EB.6060405@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427A07EB.6060405@dnainternet.net> User-Agent: Mutt/1.5.6i Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 13:34:19 -0000 On Thu, May 05, 2005 at 02:47:55PM +0300, Erik Udo wrote: > Wilko Bulte wrote: > >On Thu, May 05, 2005 at 02:19:41PM +0300, Erik Udo wrote.. > > > >>I couldn't find a way to remove files that had scandic/non-printable > >>letters, then i remembered ls showed inode number of the file. Is it > >>possible to remove the file by the inode number? It would be a > >>useful feature :) > >> > >>I bet there is a way to remove those files, but only > >>third party programs came to my mind. > > > > > >If you want do to it the hard way: clri(8) > > > >:-) > > > > Thanks! I'll use clri for this. It would still be a nice > feature in rm, after all, i dont think it's that hard to > make. Way overkill. find . -mindepth 1 -maxdepth 1 -inum -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\