there is more than one way to do it #### perl -i -e 'while(<>){print $_[3];}' file.txt