Yuoek_zh-cn/ 科学/ 计算机/ 算法/ Leetcode/ 0100-0199/ 0192 统计词频/ 0192 统计词频 Solution # Read from the file words.txt and output the word frequency list to stdout. cat words.txt | tr -s ' ' '\n' | sort | uniq -c | sort -nr | awk '{print $2, $1}'