Help required in sed or awk.

Hi All,
I need to pick up data on both sides of "=" sign.
For eg, following is the context that I have.

125.156.125.147=machine1
147.125.185.156=machine2
147.125.185.159=machine3

Can I have the ip address in one variable and machine name in another variable using sed or awk.

Thanks!
nua7

Hi! In awk you could do something like this

 awk -F '=' '{print $1}' file 

and substitute $1 with $2 for the the right side part of the equal sign. It's an ugly solution but it will give some points.