#!/bin/bash
function lookup()
{
case "$1" in
apple|banana|kiwi|melon)
echo "FRUIT"
;;
radish|lettuce|potato)
echo "VEGETABLE"
;;
blue|red|yellow|green|brown)
echo "COLOR"
;;
esac
}
MY_CHOICE="kiwi"
MY_CHOICE_GROUP=$(lookup "$MY_CHOICE")
echo $MY_CHOICE: $MY_CHOICE_GROUP
IyEvYmluL2Jhc2gKZnVuY3Rpb24gbG9va3VwKCkKewogICAgY2FzZSAiJDEiIGluCiAgICAgICAgYXBwbGV8YmFuYW5hfGtpd2l8bWVsb24pCiAgICAgICAgICAgIGVjaG8gIkZSVUlUIgogICAgICAgICAgICA7OwoKICAgICAgICByYWRpc2h8bGV0dHVjZXxwb3RhdG8pICAKICAgICAgICAgICAgZWNobyAiVkVHRVRBQkxFIgogICAgICAgICAgICA7OwoKICAgICAgICBibHVlfHJlZHx5ZWxsb3d8Z3JlZW58YnJvd24pICAgCiAgICAgICAgICAgIGVjaG8gIkNPTE9SIgogICAgICAgICAgICA7OwogICAgZXNhYwp9CgpNWV9DSE9JQ0U9Imtpd2kiCk1ZX0NIT0lDRV9HUk9VUD0kKGxvb2t1cCAiJE1ZX0NIT0lDRSIpCgplY2hvICRNWV9DSE9JQ0U6ICRNWV9DSE9JQ0VfR1JPVVAK