Jump to content

Word frequency: Difference between revisions

Line 4,759:
6661 it
</pre>
 
 
 
=== Original + URL import ===
 
 
 
This is Doug McIlroy's original solution but follows other solutions in importing the task's text file from the web and directly specifying the 10 most commonly used words.
 
<lang zsh>curl "https://www.gutenberg.org/files/135/135-0.txt" | tr -cs A-Za-z '\n' | tr A-Z a-z | sort | uniq -c | sort -rn | sed 10q</lang>
 
{{Out}}
 
<pre>41096 the
19955 of
14939 and
14558 a
13954 to
11218 in
9649 he
8622 was
7924 that
6661 it</pre>
 
=={{header|VBA}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.