awk '{if($2>10) print > outfile1; else print > outfile2}' infile
但是这个脚本不行怎么修改呢?!谢谢>
awk '{if($2>10) {print > "outfile1"} else {print > "outfile2"}}' infile