Skip to main content
5 of 5
Improved formatting. Minor fixes.
Pablo A
  • 3.2k
  • 1
  • 26
  • 46
# The "sed -r" trick does not work on every Linux, I still dunno why:
DECOLORIZE='eval sed "s,${END}\[[0-9;]*[m|K],,g"'

How to use

<commands that type colored output> | ${DECOLORIZE}

Tested on:

  • AIX 5.x / 6.1 / 7.1
  • Linux Mandrake / Mandriva / SLES / Fedora
  • SunOS
scavenger
  • 178
  • 1
  • 5