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

2 lines
125 B
Bash

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