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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -