BEGIN { FS = ";" } { n = split($2, item, /,/) for (i = 1; i <= n; i++) print $1, item[i] }