The easiest way to read a file beginning with a dash (-) is generally just to prefix it with a path; so, cat ./-
reads a file called -
in the current directory (as opposed to cat -
, which tries to read from STDIN).
Search
July 31, 20241 min read
The easiest way to read a file beginning with a dash (-) is generally just to prefix it with a path; so, cat ./-
reads a file called -
in the current directory (as opposed to cat -
, which tries to read from STDIN).