#!/bin/bash
#
dm1="test1@gmail.com, test2@gmail.com, test3@gmail.com"
dm2="test4@gmail.com, test5@gmail.com, test6@gmail.com"
dm3="test7@gmail.com, test8@gmail.com, test9@gmail.com"
#
read -p "type: dm1, dm2 or dm3 to select: " blocks
I need that variable $blocks will contains not the string dm1, dm2 or dm3 but the contents of dm1, dm2 or dm3 variables to redirect to mutt to send email