lo-tech version
corz.org text viewer..
[currently viewing: /
public
/
linux
/
usr
/
local
/
bin
/
echoc.sh - raw
]
click
here
for plain text
click
here
for more groovy stuff like this
#!/bin/sh
# 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
"[01;30m
$1
[00m"
;;
red|r)
echo
"[01;31m
$1
[00m"
;;
green|g)
echo
"[01;32m
$1
[00m"
;;
yellow|y)
echo
"[01;33m
$1
[00m"
;;
blue|b)
echo
"[01;34m
$1
[00m"
;;
magenta|m)
echo
"[01;35m
$1
[00m"
;;
cyan|c)
echo
"[01;36m
$1
[00m"
;;
white|w)
echo
"[01;37m
$1
[00m"
;;
*)
echo
"
$1
"
;;
esac