Not sure why you have the "i" modifier.# works like wc perl -ne 's/\s+/$i++/eg;END{print "$i\n"}' f1 f2
In reply to Re^4: problem count the number of words -- oneliner
by kschwab
in thread problem count the number of words
by GHMON
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |