splitting words from a string

Hi,
I have a string like this in a file,

I want to retrive the words separated by comma's in 3 variables. like

How do i get that.plz advice

This might help you and can finish it...

 
>echo $USER
SYSUSER,SYSTEM,/users/suresh/log 
>usrnm=`ECHO $USER | cut -f 1 -d ,`
>echo $usrnm
SYSUSER

USER=SYSUSER,SYSTEM,/users/suresh/log
I want to retrive the words separated by comma's in 3 variables. like
Quote:
usernm=SYSUSER
passwd=SYSTEM
logdir=/users/suresh/log

nawk -F"," '{printf"%s\npasswd=%s\nlogdir=%s\n",$1,$2,$3}'

OR...
if you need the format you write exactly use:-

nawk -F"," '{printf"usernm=%s\npasswd=%s\nlogdir=%s\n",substr($1,6),$2,$3}'

BR