I have a file which looks like this:
Size: 20,30,40
Frequency: 60,70,80
I tried using sed where I replace the , with a new line and text but then that doesn't give me my desired output
sed 's/,/\nSize:/g' infile > outfile
I expect the output to be in a list format like the following manner (each in a new line ):
Size1 :20
Frequency1: 60
Size2 :30
Frequency2:70
Size3 :40
Frequency3:80
Size4 :
Frequency4:
Size5 :
Frequency5:
I need two extra columns as some files can have 5 sizes