in reply to How can I make it to a one liner
perl -ne 'chomp;for(split /,/){print ++$i%3 ? "$_," : "$_\n" }'
The test file:
a,b,c,d,e f,g,e,h i,j, l,m n , [download]
greatshots' output:
a,b,c d,e,f,g,e h,i,j,l,m,n, [download]
My output:
a,b,c d,e,f g,e,h i,j,l m,n, [download]
ikegami's output:
a,b,c d,e f,g e,h i,j l,m n , [download]
It would be interesting to know what the desired output is (and if it matters at all)