Grep part of the line

How do I print only the values of the variables from set or env.

For example I have the lines

USER=USER
XYZ='text'
SHELL=/bin/bash

How do I print only the part after or starting from =

Let's say I have those lines in a list X
If I run

Y = echo $X | grep -o "=*$"

Y won't contain
=USER ='text' =/bin/bash

set | awk -F'=' '{ print $2}'

Many, many thanks.

Hi,
another one...

set |cut -d= -f1-

/Lakris