Is \" - \" a shortcut for stdout in bash? If not what does it mean? For example,
wget -q -O - $line
How about stdin?
Thanks and re
As far as I know, bash
isn't involved with the usage of dash. It's just a convention of many UNIX command line utilities to accept -
as a placeholder for stdin
or stdout
when put in place of an input or output file name on the command line.
For utilities that use operands to represent files to be opened for either reading or writing, the '-' operand should be used only to mean standard input (or standard output when it is clear from context that an output file is being specified).