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!

If something isn't working, I'm probably improving it, try again in a minute. If it's still not working, please mail me!