source wdbashfunctions | for use in scripts or ~/.bashrc |
wdbashfunctions -[h|H|V] | for help on the command line |
-h | print short help and exit |
-H | display full documentation with less and exit |
-V | print version and exit |
~/.bashrc
.
Bla
, Red
, Gre
, Yel
, Blu
, Mag
, Cya
, and Whi
print their arguments, separated with newlines, in black, red, yellow, blue, magenta, cyan and white respectively. The same commands with their second character capitalized print the same colors in a lighter variant. By capitalizing the third character, the arguments are printed in bold face. By captializing all characters, the arguments are printed in bold face in the light color variant.
If the first argument is on
, a second 3-letter argument is expected which specifies the background color. Capitalizing the third (bold face) character has no significance here of course. Instead, it will cause the argument to blink.
In short:
Red -> red REd -> light red RED -> light bold red Red on Yel -> red on yellow Red on YEl -> red on light yellow Red on YEL -> blinking red on light yellow RED on YeL -> blinking light bold red on yellow
echo $Red red $REd light red $RED bold light red $BlU bold blue
$verbose
is defined and has the value true
.
$PREFIX/bin/html
and a man page in $PREFIX/bin/man/man1
. This function is not for use by normal users, the administrator call it via the undocumented -I
option. It needs two other scripts: instscript
and gendoc
.