in reply to Re^2: problem count the number of words -- oneliner
in thread problem count the number of words
Are you sure? This one gives the same result like wc.
perl -ne 's/\S+/$i++/egi;END{print "$i\n"}' f1 f2
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: problem count the number of words -- oneliner
by kschwab (Vicar) on Dec 26, 2018 at 17:38 UTC | |
by pme (Monsignor) on Dec 26, 2018 at 21:00 UTC |