This commit is contained in:
5
ase/cmd/awk/emp-019.awk
Normal file
5
ase/cmd/awk/emp-019.awk
Normal file
@@ -0,0 +1,5 @@
|
||||
{ pay = pay + $2 * $3; }
|
||||
END { print NR, "employees";
|
||||
print "total pay is", pay;
|
||||
print "average pay is", pay/NR;
|
||||
}
|
||||
Reference in New Issue
Block a user