Help for this page
perl -pale '$_=join"\t",@F[2,0,1]'
perl -pale '$_=join"\t",@F[2,0,1];@F^3&&last' >> OUTFILE INFILE