Convert Singleline to Multilines

Hi All,

Could you please help to get the below output:

Input:

J1,ELLA_1,ISDR,JJK,TRS
J2,ROSTER,JACK
J3,HUP
...
...
...

Output:

J1,ELLA_1
J1,ISDR
J1,JJK
J1,TRS
J2,ROSTER
J2,JACK
J3,HUP
...
...
...

Thanks & Regards,
Ulf

OK I think there was a thread recently about this.. try:

awk '{for(i=2; i<=NF; i++) print $1, $i}' FS=, OFS=, file
awk -F\, '{ for(i=2;i<=NF;i++) {printf("%s,",$1);print $i} }' <file>

Thanks a lot its working fine