So I have been working with a csv export for a few days now and I have the data almost in the form I need it in. I need some advice on how best to proceed to get to the soltuion I need.
Here is the problem:
My csv export contains multiple rows (over 2000) of data in this format:
data1,data2,data3,data4
data1,data2,data3,data4
data1,data2,data3,data4
and I need to convert groups of three rows into one single line like this:
data1,data2,data3,data4,data1,data2,data3,data4,data1,data2,data3,data4
I have researched doing this with PHP and that is my first choice and why Im posting it here, but it looks like Bash and Python might be options as well.
Any thoughts on how you might handle this woukld be greatly appreciated.