List of Shell Env Vars

Hia,

echo ${!S*}

gives me all those env vars starting with S like SHELL SECONDS SHELLOPTS SHLVL etc.

is there any way to deflate the shell variables' range like

echo ${!A-E*}

OR

echo ${!A..S*}

to list all env vars starting within range of A till E. Thanks

Regards,
Nasir

Something like

# env | sort -t= -k1 | grep '^[M-S][^=]*='
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
PWD=/root
SHELL=/bin/bash
SHLVL=1

Will work - this will display all environment variables starting with M through to S inclusive.

Cheers,
ZB