I have a input file like this (input.txt):Main1 one,two,three,four Main2 five,six,seven,eight I want the output like this in output file (output.txt):Main1 oneMain1 twoMain1 threeMain1 fourMain2 fiveMain2 sixMain2 sevenMain3 eight
Comma separated words to next line in new file
awk