1. 程式人生 > >企業面試題

企業面試題

企業面試 ase section ber rep nta all rowset resources

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

企業面試題