gno/usr.bin/awk/tests/ch1p40a.awk

5 lines
115 B
Awk
Raw Normal View History

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