Next, simply grab the hex color
code by using the following
command:
BGColor=`eval echo $"$(echo $1)"`
"$(echo $1)" evaluates to "MidnightBlue" and
`eval echo $MidnightBlue evaluates to "#191970".
Simply launch the xterm window
using $BGColor as the background
color:
xterm -bg="$BGColor" &
This method for extracting pseudo hash
values may be used for NIS map files,
file date stamps, GUI colors, etc.
This tip generously supported by: Jasper.Silvis@PHL.Boeing.com
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.