g0101_0200.s0192_word_frequency.script.sh Maven / Gradle / Ivy
# Read from the file words.txt and output the word frequency list to stdout.
# #Medium #Shell
sed -e 's/ /\n/g' words.txt | sed -e '/^$/d' | sort | uniq -c | sort -r | awk '{print $2" "$1}' © 2015 - 2025 Weber Informatics LLC | Privacy Policy