Does " - " mean stdout in bash? -



Does " - " mean stdout in bash? -

is " - " shortcut stdout in bash? if not mean? example,

wget -q -o - $line

how stdin?

thanks , regards!

as far know, bash isn't involved usage of dash. it's convention of many unix command line utilities take - placeholder stdin or stdout when set in place of input or output file name on command line. edit: found it, behavior specified in posix utility syntax guidelines, §12.2.13 of the open grouping base of operations specifications:

utilities utilize operands represent files opened either reading or writing, '-' operand should used mean standard input (or standard output when clear context output file beingness specified).

bash

Comments

Popular posts from this blog

python - How to add an model instance to a django queryset? -

Using Android Volley to post an array to PHP -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -