RosettaCodeData/Task/Word-frequency/UNIX-Shell/word-frequency-2.sh

2 lines
125 B
Bash
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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