awk '{print $1 " " $2" "$3 " " $4;for(i=5;i<12;i++) printf("%s ",$i);print " " $12" " $13" "$14" "$15" " $16 " " $17 ;for(i=18;i<22;i++) printf("%s ",$i);print " " $22;for(i=23;i<NF-3;i++) printf("%s ",$i);print $(NF-3) " "$(NF-2)" " $(NF-1)" " $(NF)" "'} wo.txt > cao.txt