In bash
echo ${!X*}
will print all the names of the variables whose name starts with \'X\'. Is it possible to get the same with an ar
env | awk -F= '{if($1 ~ /X/) print $1}'