perl -ne 'chomp;for(split /,/){print ++$i%3 ? "$_," : "$_\n" }'
In reply to Re: How can I make it to a one liner by moritz in thread How can I make it to a one liner by greatshots