color_stderr

This function will display stderr output in red.

Usage

with-stderr-output.sh
#!/usr/bin/env sh
echo 'error' >&2
$ ./with-stderr-output.sh
error
$ color_stderr ./with-stderr-output.sh
error

More Information