I am new to awk and can't quite figure out the best way to do this. I have thousands of xml files which I have already removed duplicates and divided fields into a single column in a single file using sed and awk.
Now I want to assemble the list into a csv file containing multiple fields on one line. After a fixed number of fields I want to start a new line.
Example
1234
2345
345678
4.23456E3
54321
654321
789
87654.100
9876
10.0
1234
2345
345678
4.23456E3
54321
654321
789
87654.100
9876
11.0
Output
1234, 2345, , 345678, 4.23456E3, 54321, 654321, 789, , 87654.100, 9876, , 10.0
1234, 2345, , 345678, 4.23456E3, 54321, 654321, 789, , 87654.100, 9876, , 11.0
Thanks