#!/bin/bash # illustrates how to use "indirect expansion" of variables # See: http://www.gnu.org/software/bash/manual/bashref.html#SEC29 aaa=bbb bbb=ccc echo ${!aaa}