参数,参考 bzip2
[root@localhost ~]# bzcat -9 abc.sh.bz2 BEGIN { FS="to" count=0 } { #printf("%s,%s\n",$1,$2) split($1,parts1,"-") split($2,parts2,"-") mystr=sprintf("%4d%2d%2d %4d%2d%2d",parts1[1],parts1[2],parts1[3],parts2[1],parts2[2],parts2[3]) count+=gsub(" ","0",mystr) print mystr } END{ print count/2 }
评论(0)
暂无评论