列数= 5
列长
[4 2 5 1 1]
样本观察:
aasdfh9013512 ajshdj 2445df
预期产出
aasd,fh,90135,1,2 ajsh,dj,2445,d,f
gawk '$1=$1' FIELDWIDTHS='4 2 5 1 1' OFS=,infile
输出:
aasd,f