Nov 7, 2018

How to use associative arrays in Bash Shell scripts

declare -A namemap
namemap[26]="cost"
namemap[27]="property"
namemap[28]="research"
namemap[29]="geomatics"
namemap[30]="argus"

t=28
echo ${namemap[$t]}