当前位置: 技术问答>linux和unix
AWK脚本问题。(很简单的课后习题,来接分。。。)
来源: 互联网 发布时间:2016-06-13
本文导语: # gawk programing BEGIN { print "tt***CAMPAING 1998 CONTRIBUTIONS***" print "--------------------------------------------------------------------" print "NAMEttPHONEtJan | Feb | Mar | Total Donated" print "-----...
# gawk programing
BEGIN {
print "tt***CAMPAING 1998 CONTRIBUTIONS***"
print "--------------------------------------------------------------------"
print "NAMEttPHONEtJan | Feb | Mar | Total Donated"
print "--------------------------------------------------------------------"
}
{all=$3+$4+$5; ALL=all+ALL;
{for(i=3;i