in reply to extracting columns

perl -anE 'say "@F[1,3]" if $F[3] > 2 && $F[3] < 5' filename.txt