[100204] in RedHat Linux List
RE: how to remove a file starting with -
daemon@ATHENA.MIT.EDU (Frank N. Stein)
Wed Nov 18 19:17:07 1998
In-Reply-To: <199811182249.RAA04931@mail.redhat.com>
Date: Wed, 18 Nov 1998 18:19:08 -0600 (CST)
From: "Frank N. Stein" <kcsmart@microlink.net>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On 18-Nov-98 James Baxter complained about how to remove a file
starting with -:
> Can some one tell me how to remove a file like -letter? Even rm *
> fails
> because the -l looks like a bad option.
Possibly:
rm ?<remainder-of-name>
Or:
rm *<some-part-of-name>*
Or even:
rm ?<some-part-of-name>*
The only problem with using asterisks is you'll need to be careful that
the wildcard doesn't match more than one file.
---
I distinctly remember forgetting that.
--
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.