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!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!