awk将文件按照某一列的值分为不同的文件

awk '{print $0 >> "data_"$7}' 1.txt

猜你喜欢

转载自www.cnblogs.com/wangylblog/p/13376692.html