From owner-freebsd-questions Thu Oct 7 18:19:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 3C50614E91 for ; Thu, 7 Oct 1999 18:19:35 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id VAA19665; Thu, 7 Oct 1999 21:22:17 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199910080122.VAA19665@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Wierd Directory listing In-Reply-To: from "patl@phoenix.volant.org" at "Oct 7, 1999 11:14:42 am" To: patl@phoenix.volant.org Date: Thu, 7 Oct 1999 21:22:17 -0400 (EDT) Cc: jsw@iwww.sitel.net (Jack Winslade), mjoseff@retribution.net (Matthew Joseff), freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG patl@phoenix.volant.org wrote, > On 7-Oct-99 at 10:42, Jack Winslade (jsw@iwww.sitel.net) wrote: > > The trick I use to remove unremovable files is to specify a pattern that > > matches only the bad one. I would first try: > > > > rm *7* [snip] > And, while we are on the topic of deleting inconviently named > files; the easiest way to delete a file that starts with a dash > is to put './' in front. E.g., > > rm ./-r I always felt, % rm -- -r Was easiest. Always good to remember the use of '--' for times when a '-r' kind of argument is not a file name and the previous trick does not work. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message