From owner-freebsd-questions Mon Dec 17 16:52:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 8194A37B41B for ; Mon, 17 Dec 2001 16:52:31 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 0F419BDA2; Mon, 17 Dec 2001 16:52:31 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id QAA29042; Mon, 17 Dec 2001 16:52:30 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id fBI0rLu30045; Mon, 17 Dec 2001 16:53:21 -0800 (PST) (envelope-from swear@blarg.net) To: Jim Conner Cc: freebsd-questions@FreeBSD.ORG Subject: Re: rm a file named "-l"? ;-) References: <20011217111215.I21241@xs4all.nl> <20011217111215.I21241@xs4all.nl> <5.1.0.14.0.20011217163005.034eacc0@mail.enterit.com> From: swear@blarg.net (Gary W. Swearingen) Date: 17 Dec 2001 16:53:21 -0800 In-Reply-To: <5.1.0.14.0.20011217163005.034eacc0@mail.enterit.com> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Jim Conner 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