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]}

Comments

Popular posts from this blog

How to get Active Transactions and Locks from MySQL

Example of a PAC file