corz.org text viewer..
[currently viewing: /public/linux/usr/local/bin/echoc.sh - raw]
#!/bin/bash

# slightly slower than doing it directly, but nice.
# only used where a complete line will be in a single colour

case "$2" in

    black|k)
        echo "$1"
    ;;
    red|r)
        echo "$1"
    ;;
    green|g)
        echo "$1"
    ;;
    yellow|y)
        echo "$1"
    ;;
    blue|b)
        echo "$1"
    ;;
    magenta|m)
        echo "$1"
    ;;
    cyan|c)
        echo "$1"
    ;;
    white|w)
        echo "$1"
    ;;
    *)
        echo "$1"
    ;;
esac

Welcome to corz.org!

Since switching hosts (I hope you are alright, Ed! Wherever you are …) quite a few things seems to be wonky.

Juggling two energetic boys (of very different ages) on Coronavirus lockdown, I'm unlikely to have them all fixed any time soon. Mail me! to prioritise!