How do I delete a file whose name begins with "--"?
Due to mismatched switches when I was trying to run a command, I have a log file named
-w in a directory. I want to see its contents with
less) and then delete it.
I've tried escaping it with backslashes, single-quotes, double-quotes, parentheses, and backticks, but
cat always complains that
w is an unknown option.
How can I properly reference this file?