[H-GEN] deleting files that start with --

David Harrison trogspam at games.telstra.com
Thu Mar 2 19:01:15 EST 2006


rm -- filename should do the trick

-- david


---- Original Message ----
From: "David Powell (Moondrake)" <moondrake at aanet.com.au>
To: <general at lists.humbug.org.au>
Sent: Friday, March 03, 2006 9:55 AM
Subject: [H-GEN] deleting files that start with --

> [ Humbug *General* list - semi-serious discussions about Humbug and  
> ] [ Unix-related topics. Posts from non-subscribed addresses will
> vanish. ] 
> 
> Hi All,
> 
> I just misused tar's --exclude option and now have a tar file whose
> name starts with --exclude=
> 
> How can I delete this (from the CLI)?  I've tried escaping the minus
> character and running rm *exclude*, but they just return an error
> "unrecongised option --exclude="
> 
> I know I just read how to do this recently in linux mag, but can't
> find the article...
> 
> TIA!
> 
> David
> 
> _______________________________________________
> General mailing list
> General at lists.humbug.org.au
> http://lists.humbug.org.au/cgi-bin/mailman/listinfo/general




More information about the General mailing list