Quantcast
Channel: Admins Goodies » stderr
Viewing all articles
Browse latest Browse all 10

bash: print stderr in red color

$
0
0

Question

Is there a way to make bash display stderr messages in red color?

Answer

command 2> >(while read line; do echo -e "e[01;31m$linee[0m"; done)

Viewing all articles
Browse latest Browse all 10

Trending Articles