From owner-freebsd-questions Thu Oct 7 11:16:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (Postfix) with ESMTP id A4DB6157D1 for ; Thu, 7 Oct 1999 11:16:25 -0700 (PDT) (envelope-from patl@phoenix.volant.org) Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 11ZI3z-00021s-00; Thu, 7 Oct 1999 11:14:47 -0700 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id LAA23386; Thu, 7 Oct 1999 11:14:42 -0700 Date: Thu, 7 Oct 1999 11:14:42 -0700 (PDT) From: patl@phoenix.volant.org Reply-To: patl@phoenix.volant.org Subject: Re: Wierd Directory listing To: Jack Winslade Cc: Matthew Joseff , freebsd-questions@FreeBSD.ORG In-Reply-To: <199910071739.MAA16970@iwww.sitel.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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* Just a note for the paranoid: When I need to do something like this, I use the sequence: ls *7* rm *7* 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 -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message