对tt3文本中出现的url进行统计并排序
[/tmp/test]# cat tt3
http:///index.html
http:///index.html
http:///index.html
http:///index.html
http:///index.html
http:///index.html
http:///index.html
[/tmp/test]# cat tt3 | cut -d "/" -f3 | sort | uniq -c | sort -nrk1
3
2
1
1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-2061727/
,如需转载,请注明出处,否则将追究法律责任。