Sign up ×  For a command, if using - as an argument in place of
a file name will mean STDIN or STDOUT.    1. But in this
example, it creates a file with the name -:      echo hello > -
How can I make - in this example mean STDOUT?    2. Conversely,
how can I make - mean a file named - in examples such as:
cat - share|improve this question Since I apparently have to
have 50 reputation to comment directly... On the /dev/stdin
/dev/stdout comment, AIX, which is a legitimate UNIX derivative
does not have these pseudodevices. And, as a further comment,
LINUX is not a UNIX derivative in any case. It is a POSIX-
compliant workalike, and the most popular of the UNIX-ish OS's
at this point, but make no mistake, this is no UNIX. But, the
gist of the replies here are correct. The "-" notation is not
interpreted as special by the shell, and is thus passed directly
to each individual application as an ARG. If the application
does not recogni –  user95873 Dec 23 '14 at 20:04  4 Answers 4
up vote 37 down vote acce