From owner-freebsd-questions Mon Jul 3 12:44:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from merlin.prod.itd.earthlink.net (merlin.prod.itd.earthlink.net [207.217.120.156]) by hub.freebsd.org (Postfix) with ESMTP id 834DB37B97D for ; Mon, 3 Jul 2000 12:44:20 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from dialin-client.earthlink.net (pool0468.cvx21-bradley.dialup.earthlink.net [209.179.193.213]) by merlin.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id MAA18914; Mon, 3 Jul 2000 12:44:18 -0700 (PDT) Received: (from cjc@localhost) by dialin-client.earthlink.net (8.9.3/8.9.3) id MAA00607; Mon, 3 Jul 2000 12:42:43 -0700 (PDT) Date: Mon, 3 Jul 2000 12:42:41 -0700 From: "Crist J. Clark" To: Mac Cc: pedro@hci.com.mx, freebsd-questions@FreeBSD.ORG Subject: Re: Erasing files ... Message-ID: <20000703124240.A433@dialin-client.earthlink.net> Reply-To: cjclark@alum.mit.edu References: <200007030926.KAA17220@ngo.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200007030926.KAA17220@ngo.org.uk>; from mac@ngo.org.uk on Mon, Jul 03, 2000 at 10:26:06AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 03, 2000 at 10:26:06AM +0100, Mac wrote: > Hi all, > > Pedro Hernandez Wrote > > Thanks Jonathan, Ian, and Matthew: > > > > I've just found solution with find / -name "-z" -delete. > > > > Your way didn't function Ian, but thank you anyway. > > > Here's the real way, and it works on all forms of UNIX, no need for > special 'find' command options (or special 'rm' options, which are > (IMHO) a complete abomnination) > > > Just use the FULL path name. > > So to remove '-z' in the root directory use:- > > > rm /-z > > or, more generally, if you're in a directory with a file named '-dfg' > use:- > > rm ./-dfg I've always been partial to, rm -- -dfg -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message