Perl field numbering starts at zero instead of one. This should give you want you wanted: perl -anE 'say join "\t", @F[1,2,0]' inputfile.txt