*BSD News Article 81334


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.coverform.lan (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: dummy question
Date: 22 Oct 1996 11:29:46 +0100
Organization: Coverform Ltd.
Lines: 19
Sender: brian@awfulhak.demon.co.uk
Message-ID: <54i7mq$1ss@anorak.coverform.lan>
References: <53mfdu$1iv@wa4phy.async.com> <543o1d$pe0@newsbr.eunet.fr>
    <545350$7j6@itchy.serv.net>
Reply-To: brian@awfulhak.demon.co.uk
NNTP-Posting-Host: anorak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <545350$7j6@itchy.serv.net>,
	zeno@serv.net (Sean T. Lamont .) writes:
: I should throw this in ; I've found it useful from time to time for peskily-
: named files.
: 
: do ls -i. this will list the directory by inode. Let's say the inode in
: question is #12345. do
: 
: find . -type f -inum 12345 -exec rm {} \; 
: 
: This will get rid of any file, no matter how nasty the filename is.

No it won't.  rm will still be passed something beginning with a '-'.

-- 
Brian <brian@awfulhak.demon.co.uk>
      <http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.