qse/ase/test/awk/emp-019.awk

6 lines
132 B
Awk
Raw Normal View History

2006-11-17 06:51:28 +00:00
{ pay = pay + $2 * $3; }
END { print NR, "employees";
print "total pay is", pay;
print "average pay is", pay/NR;
}