home *** CD-ROM | disk | FTP | other *** search
- # this is the AWK program phdata.awk (I use Rob Duff's dos version of AWK)
- # to run on datacma.asc, enter:
- # awk -F, phdata.awk datacma.asc
- # see p 246 in the April 91 BYTE mag for basic version
- # and context.
-
- $5 ~ /(phone|Phone)/ {y = substr($2,7,2)
- year[y] = year[y]+$3 }
- END {for (i in year)
- print "total for 19" i,"was", year[i] }
-