Bash – Printing STDERR in Red Color bashcolorstderr Is there a way to make bash display stderr messages in red color? Best Answer command 2> >(while read line; do echo -e "\e[01;31m$line\e[0m" >&2; done) Related SolutionsBash Scripting – How to Determine if a Bash Variable is Empty This will return true if a variable is unset or set to the empty string (""). if [ -z "${VAR}" ]; Bash Scripting – How to Print Commands Before Execution bash -x script or set -x in the script. You can unset the option again with set +x. If you just want to do it for a few commands you can use a subshell: `(set -x; command1; command; ...;) Related TopicBash – Hash to create Hex Color Codes from string (in bash)Bash – Different color prompts for different machines when using terminal/sshWindows cmd stderr redirection to stdout while keeping output to stderrBash – Check if array is empty in Bash
Best Answer