Are you sure? This one gives the same result like wc.
perl -ne 's/\S+/$i++/egi;END{print "$i\n"}' f1 f2
In reply to Re^3: problem count the number of words -- oneliner
by pme
in thread problem count the number of words
by GHMON
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |