I want to convert multiple Columns to rows.
e.g
Input :
A,0,10,12,14,16,2,
B,10,10P
Output:
A,0,0
A,10,10
A,12,12
A,14,14
A,16,16
A,2,2
B,10,10
B,10P,10p
I tried but not sure how to repeat the certain columns.
awk '{FS=",";OFS="\n"}{print $1, $2, $3, $4, $5}' filename