I need to visually distinguish, at a glance, stdout output from stderr output coming from a Bash script I am debugging.
Can I pipe the command through some “visualisation enhancer” UNIX filter that would at least colour stderr “red”, if not even prepend some tag to each stderr line?
Well, a few options.
Easiest would be to use hilite.
Other options would include writing custom shell wrapper to colorize the input.
A few options are here (note, that they are pretty much xterm-specific).