I work with program which usage is "program input-file output-file". How can I write the result in STDOUT and don't write it into the output-file. Thanks.
2 に答える
2
Put /dev/stdout
as the output filename.
于 2012-04-13T04:11:33.570 に答える
2
Use /dev/fd/1
or /dev/stdout
as the output file. Some programs will recognize -
to mean stdout
, or will even use it automatically if the output file is omitted, but this is up to the individual program (unlike the /dev
ones which are system services, although sometimes emulated by shells on systems that lack them).
于 2012-04-13T04:12:27.073 に答える