Before I ask my actual question, is it going to be a problem that I want to run this process on a 15 Gig file that is ~140 million rows?
What I'm trying to do:
I have a file that looks like
Color,Type,Count,Day
Yellow,Full
5
Tuesday
Green,Half
6
Wednesday
Purple,Half
8
Tuesday
...
and my desired output is
Color,Type,Count,Day
Yellow,Full,5,Tuesday
Green,Half,6,Wednesday
Purple,Half,8,Tuesday
...
Leaving the title row alone, lines 2,3, and 4 should be combined into 1 line seperated by commas, same with lines 5,6, and 7, all the way to the last sets of lines in the file 139,999,997, 139,999,998 and 139,999,999.
Nothing I've tried with sed has allowed me to combine multiple lines into one line, since sed reads everything line by line. Some things I've read make this sound possible, but I have no idea how.
Thanks,
GoldFish