首页 > 其他 > 详细

企业面试题

时间:2018-07-13 19:37:43      阅读:167      评论:0      收藏:0      [点我收藏+]
1、按单词出现频率降序排序!
2、按字母出现频率降序排序!
the squid project provides a number of resources toassist users design,implement and support squid installations. Please browsethe documentation and support sections for more infomation

推荐答案
grep -o "[a-Z]" oldboy.log|sort|uniq -c|sort -rn|head -5

sed -r ‘s#[ .,]##g‘ oldboy.log|awk -F "" ‘{for(i=1;i<=NF;i++)S[$i]++}END{for(k in S)print S[k],k}‘|sort -rn|head -5

企业面试题

原文:http://blog.51cto.com/13667310/2141887

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!