From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 16:30:58 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 C0CEE16A4CE for ; Thu, 5 May 2005 16:30:58 +0000 (GMT) Received: from web52709.mail.yahoo.com (web52709.mail.yahoo.com [206.190.39.160]) by mx1.FreeBSD.org (Postfix) with SMTP id 4DBA043D8D for ; Thu, 5 May 2005 16:30:58 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: (qmail 27319 invoked by uid 60001); 5 May 2005 16:30:54 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=DgnZ60jRRUCtD6ePEgWIRz/wd1z7euAdRJSLfUC4WD4eeLwpjhKwyx4w2n24Diz1VugWpCtQ87nCndMDldBr9vbILsoCZqUqudPhJ3TKRaOpqEXm9KXloDG3OgIEVBKOG6iA25NpVfPPASUT/btAt6isveQRifr6MhNLWLliGzI= ; Message-ID: <20050505163054.27317.qmail@web52709.mail.yahoo.com> Received: from [64.186.168.226] by web52709.mail.yahoo.com via HTTP; Thu, 05 May 2005 09:30:54 PDT Date: Thu, 5 May 2005 09:30:54 -0700 (PDT) From: "Kamal R. Prasad" To: simon.roberts@earthlink.net, freebsd-hackers@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Reply-To: kamalp@acm.org 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 16:30:58 -0000 --- Simon Roberts wrote: > A couple of observations: > [snip] [snip] > > Point 2, likely as not, might explain why there's no > simple mechanism for doing this from rm. At the very > least you'd have to specify the file system you're > referring to, and many "plain" users couldn't do > that > safely. Those that can are probably able to use find > anyway. > A (device no, inode no) can uniquely identify a file -but then it requires the same amt of traversals (from the root directory's inode) that any other utility does. Im not sure rm can optimize anything that a find .. -exec rm {} \; would. > Cheers, > Simon > > > --- Raymond Wiker wrote: > > Erik Udo writes: > > > 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. > > > > How about rm -i ./*? > > The POSIX std requires -i to be used for 'interactive' (and even if it didn't that is already the case on most unix systems). regards -kamal > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org" > > > > > > __________________________________ > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. > http://mobile.yahoo.com/learn/mail > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > ------------------------------------------------------------ Kamal R. Prasad UNIX systems consultant kamalp@acm.org In theory, there is no difference between theory and practice. In practice, there is:-). ------------------------------------------------------------ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html