colorize

    [sts@apollo ~/colorize]$ ./colorize --help
    Usage: ./colorize (foreground) OR (foreground)/(background) OR --clean[-all] [-|file]

    	Colors (foreground) (background)
    		{-} none         none
    		{#} [Bb]lack     black
    		{#} [Rr]ed       red
    		{#} [Gg]reen     green
    		{#} [Yy]ellow    yellow
    		{#} [Bb]lue      blue
    		{#} [Mm]agenta   magenta
    		{#} [Cc]yan      cyan
    		{#} [Ww]hite     white
    		{#} [Dd]efault   default
    		{*} [Rr]andom    random [--exclude-random=<foreground color>]

    	First character of color name in upper case denotes increased intensity,
    	whereas for lower case colors will be of normal intensity.

    	Options
    		    --attr=ATTR1,ATTR2,...
    		    --clean
    		    --clean-all
    		-c, --config=PATH
    		    --exclude-random=COLOR
    		    --omit-color-empty
    		    --rainbow-fg
    		    --rainbow-bg
    		-h, --help
    		-V, --version

    [sts@apollo ~/colorize]$ ./colorize cyan /etc/motd

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize cyan /etc/motd | ./colorize --clean

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize Yellow /etc/motd

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize white/blue /etc/motd

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize --exclude-random=black random /etc/motd

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize --attr=bold magenta /etc/motd

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize green /etc/motd | head -n2 | tail -n1
    The programs included with the Debian GNU/Linux system are free software;

    [sts@apollo ~/colorize]$ ./colorize --rainbow-fg White/black /etc/motd

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.

    [sts@apollo ~/colorize]$ ./colorize --version
    colorize v0.66-4-gdb8be3e (compiled at Aug  2 2024, 16:07:13)
    Compiler flags: "-ansi -pedantic "
    Linker flags: ""
    Preprocessor flags: ""
    Buffer size: 4K
    Color separator: '/'
    Debugging: no