[100192] in RedHat Linux List

home help back first fref pref prev next nref lref last post

RE: how to remove a file starting with -

daemon@ATHENA.MIT.EDU (Aaron Holtz)
Wed Nov 18 18:28:59 1998

Date: Wed, 18 Nov 1998 18:28:07 -0500 (EST)
From: Aaron Holtz <aholtz@bright.net>
To: redhat-list@redhat.com
In-Reply-To: <007901be1348$ad466f40$021310ac@MIS.morsco.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

I know we've seen the answer, but a simple ./ works:

rm ./-filename


Works like peach.  You can use that for any other command that would fail.

touch ./-filename

etc, etc.

--------------------------------------------------------------------------
Aaron Holtz
ComNet Inc.
Manager, Unix Systems Administration
Email:  aholtz@bright.net
"I'd give my right arm to be ambidextrous."
--------------------------------------------------------------------------

On Wed, 18 Nov 1998, James Baxter wrote:

>Thanks for the try but no luck so far.
>
>
>Try
>
>rm "-letter"
>
>and see if this works.
>
>Jon Himebaugh
>Jon.Himebaugh@tma.osd.mil
>(303) 676-3798
>
>> 
>> Can some one tell me how to remove a file like -letter?  Even rm * fails
>> because the -l looks like a bad option.
>> Thanks
>> 
>> Jim 
>>  
>> James Baxter 
>> Manager Information Services 
>> Morrison Supply Company 
>> 
>> 
>
>.
>
>
>-- 
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>		http://www.redhat.com http://archive.redhat.com
>         To unsubscribe: mail redhat-list-request@redhat.com with 
>                       "unsubscribe" as the Subject.
>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post