2006-11-19 07:45:46 +00:00
|
|
|
{
|
|
|
|
nc = ((nc + length ($0)) + 1);
|
2006-12-23 06:33:47 +00:00
|
|
|
nw = (nw + NF);
|
2006-11-19 07:45:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
END {
|
2006-12-23 06:33:47 +00:00
|
|
|
print NR,"lines,",nw,"words,",nc,"characters";
|
2006-11-19 07:45:46 +00:00
|
|
|
}
|
|
|
|
6 lines, 18 words, 77 characters
|