From owner-freebsd-questions Thu Jun 28 17:23:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tao.thought.org (sense-kline-248.oz.net [216.39.168.248]) by hub.freebsd.org (Postfix) with ESMTP id 22B8737B405 for ; Thu, 28 Jun 2001 17:23:41 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.11.3/8.11.0) id f5T0NOp03765; Thu, 28 Jun 2001 17:23:24 -0700 (PDT) (envelope-from kline) Date: Thu, 28 Jun 2001 17:23:24 -0700 From: Gary Kline To: parv Cc: ChildsC@BCRAIL.COM, brigg@flatlan.net, freebsd-questions@FreeBSD.ORG Subject: Re: somewhat interesting rm issue Message-ID: <20010628172323.B3556@tao.thought.org> References: <01Jun28.130929pdt.119046@gatekeeper.bcrail.com> <20010628201452.A2404@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010628201452.A2404@moo.holy.cow>; from parv_@yahoo.com on Thu, Jun 28, 2001 at 08:14:52PM -0400 X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 15 years of service to the Unix community 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 On Thu, Jun 28, 2001 at 08:14:52PM -0400, parv wrote: > so, ChildsC@BCRAIL.COM shared this in my lifetime... > > What error messages are you getting? Maybe the name contains some spaces. > > Try rm -i blah* > > > > Chris > > > > -----Original Message----- > > From: Brigg Angus [mailto:brigg@flatlan.net] > > Sent: Thursday, June 28, 2001 1:07 PM > > To: freebsd-questions@FreeBSD.org > > Subject: somewhat interesting rm issue > > > ... > > > work. When I rm or rm -rf the file there is no error message, but the file > > remains. > > > > "ls -ol blah" has yielded both, > > -rw-r-xr-x 1 777 brigg - 13 Jun 27 21:31 blah > > -rwxrwxrwx 1 777 brigg - 13 Jun 27 21:31 blah > > > > 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]. > > this can be really useful when 2 filenames /appear/ to be same, but > not in reality... > You'll find the exact formula in an old edition of DaemonNews. It's something like % find -inum <> -print -exec rm -i {} \; ((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 -- Gary D. Kline kline@thought.org www.thought.org Public service Unix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message