题目
题目
https://leetcode-cn.com/problems/word-frequency/
一行命令搞定
解法
grep -oP "\w+" words.txt | sort | uniq -c | sort -nrk1 | awk '{print $2 " " $1}'
2023-12-27 18:21:21
题目
https://leetcode-cn.com/problems/word-frequency/
一行命令搞定
grep -oP "\w+" words.txt | sort | uniq -c | sort -nrk1 | awk '{print $2 " " $1}'
下一篇:QT QPainter绘制图片