From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:34:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B543A16A4CE for ; Thu, 5 May 2005 11:34:34 +0000 (GMT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AD8843DBF for ; Thu, 5 May 2005 11:34:34 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.36.13) by smtp01.syd.iprimus.net.au (7.0.036) id 4263F6DC005AA314 for freebsd-hackers@freebsd.org; Thu, 5 May 2005 21:34:33 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 95A8F42A1; Thu, 5 May 2005 21:35:34 +1000 (EST) Date: Thu, 5 May 2005 21:35:34 +1000 From: Tim Robbins To: freebsd-hackers@freebsd.org Message-ID: <20050505113534.GA13080@cat.robbins.dropbear.id.au> References: <427A014D.6020809@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427A014D.6020809@dnainternet.net> User-Agent: Mutt/1.4.1i 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 11:34:34 -0000 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. find(1) with -inum and -delete would do the trick. Tim