On Thursday, 21 July 2016 23:50:44 UTC+5:30, James wrote:
>
> Try to count the number of words (args)
>
> printf aa bb cc | perl -nle 's/\s+/\n/g' | wc -l
>
Note that the above as given will not produce the expected output.
... | perl -ple '$_=s/\S+/\n/g'
... | perl -pale '$_=@F'