4
I’m writing some script to deploy an application and need to send status messages to stderr instead of stdout, that command echo
makes by default.
How to do the command echo
send the message to stderr instead of stdout?
4
I’m writing some script to deploy an application and need to send status messages to stderr instead of stdout, that command echo
makes by default.
How to do the command echo
send the message to stderr instead of stdout?
6
You can use the following command:
>&2 echo "erro"
or
echo Esta mensagem vai para o stderr >&2
Sources:
https://stackoverflow.com/a/23550347/194717
https://stackoverflow.com/a/11422223/194717
Browser other questions tagged bash echo
You are not signed in. Login or sign up in order to post.