题目
题目
https://leetcode-cn.com/problems/word-frequency/
一行命令搞定
解法
grep -oP "w+" words.txt | sort | uniq -c | sort -nrk1 | awk '{print $2 " " $1}'
题目
https://leetcode-cn.com/problems/word-frequency/
一行命令搞定
grep -oP "w+" words.txt | sort | uniq -c | sort -nrk1 | awk '{print $2 " " $1}'