From owner-freebsd-questions Thu Jun 28 20:55:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc26.worldnet.att.net (mtiwmhc26.worldnet.att.net [204.127.131.51]) by hub.freebsd.org (Postfix) with ESMTP id E413937B407 for ; Thu, 28 Jun 2001 20:55:24 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.36]) by mtiwmhc26.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010629035523.WMIR2154.mtiwmhc26.worldnet.att.net@worldnet.att.net>; Fri, 29 Jun 2001 03:55:23 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id D4C8E19313; Thu, 28 Jun 2001 23:23:58 -0400 (EDT) Date: Thu, 28 Jun 2001 23:23:58 -0400 From: parv To: Gary Kline Cc: ChildsC@BCRAIL.COM, brigg@flatlan.net, freebsd-questions@FreeBSD.ORG Subject: Re: somewhat interesting rm issue Message-ID: <20010628232358.A2898@moo.holy.cow> Mail-Followup-To: Gary Kline , ChildsC@BCRAIL.COM, brigg@flatlan.net, freebsd-questions@FreeBSD.ORG References: <01Jun28.130929pdt.119046@gatekeeper.bcrail.com> <20010628201452.A2404@moo.holy.cow> <20010628172323.B3556@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010628172323.B3556@tao.thought.org>; from kline@tao.thought.org on Thu, Jun 28, 2001 at 05:23:24PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG so, Gary Kline shared this in my lifetime... > On Thu, Jun 28, 2001 at 08:14:52PM -0400, parv wrote: > > ... > > while we are on the topic, is there any way to remove a file by inode > > instead of by filename? didn't see anything in rm(1) and unlink(2) > > barely mentions the word 'inode' in context of error code [EIO]. > > ... > > You'll find the exact formula in an old edition of > DaemonNews. > > It's something like > > % find -inum <> -print -exec rm -i {} \; > now that you mention it, i seem to remember, vaguely, reading about using inode option of find; i was thinking of searching unix newsgroups before asking but laziness overpowrered... > ((At least 75% of the questions here could be answered by > checking the right URL. Of the FBSD Diary, Daemonnews, or > the handbook FAQ's.... Somebody ought to put together a > master index :-)) > > -g an excellent idea ... but that statement alone doesn't contribute much on my part. does it? however, we do have weekly post of "happenings" from dan l. of freebsd diary/freshports fame and faq/complete freebsd book by greg l. -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message