^[[xx;xx;xxm
,
where ^[
is an xx
are the proper character codes for attribute, background,
and foreground character color. Each one is output
as processed and errors are ignored.
A useful little utility for adding a little color to otherwise dreary and drab scripts. However, color assumes that the ANSI attribute & color sequence means something to the terminal, i.e. that it has vt100-like capability. color outputs the sequence regardless whether to a terminal device or not.