#!/bin/bash
declare -A groups
groups["apple"]="FRUIT"
groups["banana"]="FRUIT"
groups["kiwi"]="FRUIT"
groups["melon"]="FRUIT"
groups["radish"]="VEGETABLE"
groups["lettuce"]="VEGETABLE"
groups["potato"]="VEGETABLE"
groups["blue"]="COLOR"
groups["red"]="COLOR"
groups["yellow"]="COLOR"
groups["green"]="COLOR"
groups["brown"]="COLOR"
MY_CHOICE="kiwi"
MY_CHOICE_GROUP=${groups[$MY_CHOICE]}
echo $MY_CHOICE: $MY_CHOICE_GROUP
IyEvYmluL2Jhc2gKZGVjbGFyZSAtQSBncm91cHMKCmdyb3Vwc1siYXBwbGUiXT0iRlJVSVQiCmdyb3Vwc1siYmFuYW5hIl09IkZSVUlUIgpncm91cHNbImtpd2kiXT0iRlJVSVQiCmdyb3Vwc1sibWVsb24iXT0iRlJVSVQiCgpncm91cHNbInJhZGlzaCJdPSJWRUdFVEFCTEUiCmdyb3Vwc1sibGV0dHVjZSJdPSJWRUdFVEFCTEUiCmdyb3Vwc1sicG90YXRvIl09IlZFR0VUQUJMRSIKCmdyb3Vwc1siYmx1ZSJdPSJDT0xPUiIKZ3JvdXBzWyJyZWQiXT0iQ09MT1IiCmdyb3Vwc1sieWVsbG93Il09IkNPTE9SIgpncm91cHNbImdyZWVuIl09IkNPTE9SIgpncm91cHNbImJyb3duIl09IkNPTE9SIgoKTVlfQ0hPSUNFPSJraXdpIgpNWV9DSE9JQ0VfR1JPVVA9JHtncm91cHNbJE1ZX0NIT0lDRV19CgplY2hvICRNWV9DSE9JQ0U6ICRNWV9DSE9JQ0VfR1JPVVAK