* Vincent Angeloni writes:
> I've got a file named "-------Message".
> When i want to remove this file with the rm command like this : rm -------Message
> or rm "-------Message" or rm '-------Message' or rm
>\-\-\-\-\-\-\-Message
> the command failed cause it thinks that -------Message is an option !
> Could you tell me how i can remove this file ?
>From the info page for rm:
One common question is how to remove files whose names begin with a
`-'. GNU `rm', like every program that uses the `getopt' function to
parse its arguments, lets you use the `--' option to indicate that all
following arguments are non-options. To remove a file called `-f' in
the current directory, you could type either:
rm -- -f
or:
rm ./-f
Cheers,
--
Alfred M. Szmidt
_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils