Home > Software design >  (Unix) How to type file content?
(Unix) How to type file content?

Time:02-20

I have file named -. cat - means standart input, but what if I want to open file, which name is -? I already searched a lot of information and asked some people, but they even don't know how to do it.

CodePudding user response:

Include the relative path of the file

cat ./-

CodePudding user response:

You can use command like:

cat <-

this explicitly will redirect the file to stdin

  •  Tags:  
  • unix
  • Related