Word frequency: Difference between revisions
Content added Content deleted
Line 4,759: | Line 4,759: | ||
6661 it |
6661 it |
||
</pre> |
</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}}== |
=={{header|VBA}}== |