cat file 1>&2
More info at: http://www.tldp.org/LDP/abs/html/io-redirection.html
質問
Let's say I have a file
that contains a string
. When I open it with cat file
, I want the output of it to show in STDERR, not STDOUT. How can I achieve that?
解決
cat file 1>&2
More info at: http://www.tldp.org/LDP/abs/html/io-redirection.html