[clue-tech] bash tip

dperkins at frii.com dperkins at frii.com
Wed Nov 23 12:00:37 MST 2005


Those of you who do bash scripting might find this useful.
You can treat the contents of a variable as a pointer to another variable.

a=17
b=a

echo $a     prints 17
echo $b     prints a

echo ${!b}  prints 17


_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list