# The "sed -r" trick does not work on every Linux, I still dunno why:
DECOLORIZE='eval sed "s,${END}\[[0-9;]*[m|K],,g"'
# The "sed -r" trick does not work on every Linux, I still dunno why:
DECOLORIZE='eval sed "s,${END}\[[0-9;]*[m|K],,g"'
=> howto use:
How to use
<commands that type colored output> | ${DECOLORIZE}
testedTested on:
- AIX 5.x / 6.1 / 7.1
- Linux Mandrake / Mandriva / SLES / Fedora
- SunOS