[100241] in RedHat Linux List
Re: how to remove a file starting with -
daemon@ATHENA.MIT.EDU (Hossein S. Zadeh)
Thu Nov 19 11:05:44 1998
Date: Fri, 20 Nov 1998 00:17:22 +1100 (EST)
From: "Hossein S. Zadeh" <hossein@bf.rmit.edu.au>
To: redhat-list@redhat.com
In-Reply-To: <199811182249.RAA04931@mail.redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Wed, 18 Nov 1998, James Baxter wrote:
> Can some one tell me how to remove a file like -letter? Even rm * fails
> because the -l looks like a bad option.
> Thanks
>
Had the same problem a while back; took me some time to figure it out.
Most unix commands interpret "--" as the end of command line argument
list; anything after that is *not* argument. In simple term, type
"rm -- -letter" (ofcourse without the quotes).
cheers,
Hossein
,-----------------------------------------------------------------------,
| ...Mary had a little ram and Windows was so slow... |
|-----------------------------------------------------------------------|
| Hossein S. Zadeh |
| hossein@bf.rmit.edu.au |
|-----------------------------------------------------------------------|
| Dept of Aerospace Engineering | RMIT-Faculty of Business |
| (YES! I AM a rocket scientist!!)| (YES! I AM in business!!) |
| |
| Royal Melbourne Institute of Technology (RMIT), Melbourne, Australia |
'-----------------------------------------------------------------------'
--
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.