逐行去掉脏数据
awk -F ',' 'BEGIN {while(getline < "20161101") if(length($3)>=6&&length($4>=5)){{print $1","$2","substr($3,0,6)","substr($4,0,5)","$5}};close("20161101");}'
随便看看
文章排行
本栏推荐
栏目更新
Copyright 2020 Inc. AllRights Reserved. Design by awk语句