qse/ase/cmd/awk/emp-019.awk
2008-03-21 03:49:53 +00:00

6 lines
132 B
Awk

{ pay = pay + $2 * $3; }
END { print NR, "employees";
print "total pay is", pay;
print "average pay is", pay/NR;
}