[100294] in RedHat Linux List
Re: how to remove a file starting with -
daemon@ATHENA.MIT.EDU (Gordon Messmer)
Thu Nov 19 16:28:32 1998
Date: Thu, 19 Nov 1998 13:23:00 -0800
From: Gordon Messmer <yinyang@eburg.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Win Htin wrote:
>
> *nix 101. How about if the file name is something like !aaa or $aaa ;-)
>
I believe that those characters are interpreted by the shell and not
by the rm command. Under these circumstances, it would be proper to
escape the characters ! or $ with a \ character, like:
rm \!aaa
or to enclose the filename in single quotes:
rm '!aaa'
MSG
--
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.