[PLUG] Moving/removing files with leading hyphen
Chris Jantzen
chris at maybe.net
Wed Aug 4 12:45:03 UTC 2004
On Wed, Aug 04, 2004 at 12:40:10PM -0700, Rich Shepard wrote:
> I've forgotten the wrapper for files inadvertently created with a leading
> hyphen. Slash and back-slash don't escape the wayward character. My google
> searches are not properly formed for they do not produce a result.
>
> How do I 'rm -filename' or 'mv -filename filename'?
Use "--" it tells GNU getopt() to stop parsing switches.
rm -- -filename
--
chris kb7rnl =->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20040804/4bf0dc5f/attachment.asc>
More information about the PLUG
mailing list