How do I delete a file whose name begins with “-” (hyphen a.k.a. dash or minus)?
This is an awkward one, I have received some files from a windows machine which have been named things like
When I try to grep hello * in a directory containing these files I get grep errors and when I try to mv ----index.html index.html there are similar errors:
mv: unrecognized option '----index.html' Try `mv --help' for more information.
Can anyone shed any light on this?