Popular recipes tagged "word_count"http://code.activestate.com/recipes/tags/word_count/2017-04-28T08:22:08-07:00ActiveState Code RecipesCount lines and words in a text file (Batch)
2017-04-28T08:22:08-07:00Antoni Gualhttp://code.activestate.com/recipes/users/4182514/http://code.activestate.com/recipes/580791-count-lines-and-words-in-a-text-file/
<p style="color: grey">
Batch
recipe 580791
by <a href="/recipes/users/4182514/">Antoni Gual</a>
(<a href="/recipes/tags/word_count/">word_count</a>).
Revision 2.
</p>
<p>Returns number of lines and words (separed by spaces) of a text file dragged to the script. Does'nt count blank lines. </p>
Word count and length with map and lambda (Python)
2013-02-26T18:49:38-08:00Michael Thammhttp://code.activestate.com/recipes/users/4179483/http://code.activestate.com/recipes/578474-word-count-and-length-with-map-and-lambda/
<p style="color: grey">
Python
recipe 578474
by <a href="/recipes/users/4179483/">Michael Thamm</a>
(<a href="/recipes/tags/word_count/">word_count</a>).
</p>
<p>I was looking at some word count code and thought a more functional approach would be better and more fun to code. </p>