Dragos Rizescu
Dragos Rizescu

Reputation: 3488

Redirect String to STDERR Linux Command

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?

Upvotes: 0

Views: 160

Answers (1)

Babblo
Babblo

Reputation: 803

cat file 1>&2

More info at: http://www.tldp.org/LDP/abs/html/io-redirection.html

Upvotes: 2

Related Questions