Date: 17 Dec 2001 16:53:21 -0800 From: swear@blarg.net (Gary W. Swearingen) To: Jim Conner <jconner@enterit.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: rm a file named "-l"? ;-) Message-ID: <g1lmg11h8e.mg1@localhost.localdomain> In-Reply-To: <5.1.0.14.0.20011217163005.034eacc0@mail.enterit.com> References: <rl7krl3731.krl@localhost.localdomain> <20011217111215.I21241@xs4all.nl> <20011217111215.I21241@xs4all.nl> <5.1.0.14.0.20011217163005.034eacc0@mail.enterit.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jim Conner <jconner@enterit.com> writes: > >A quicker way would be to use unlink(1) > > Thought I would give an example for clarity: Well thanks for that; that's better for this case, but the wildcard method works when the filename starts with (or contains) an unknown character like ctrl-M, which you can get in there with the Xemacs shell, for example ;-(. IIRC, the SGI unlink could unlink a huge directory in a split second (and you'd run "fsck" later to clean up the left-overs), while I notice this one doesn't work on directories at all. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g1lmg11h8e.mg1>