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.
将/dev/stdout
用作输出文件名。
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).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.