perl -lne 'undef $a if($.%7==0);$a.=$_;if($.%6==0 ||(eof)){$a=~s/\;$//;print $a};'
Apr 24 2014; is; a; sample; ; Jun 24 2014 123; may 25 2014; is; b; sample; ; Dec 21 2014 987
Apr 24 2014;is;a;sample;;Jun 24 2014 123 may 25 2014;is;b;sample;;Dec 21 2014 987
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!