qse/regress/awk/emp-024.awk

5 lines
119 B
Awk

{ nc = nc + length($0) + 1;
nw = nw + NF;
}
END { print NR, "lines,", nw, "words,", nc, "characters"; }