[root@bogon 桌面]#
cat booklist.txt
9787302115199
9787302142201
9787302115199
9787115242907
9787115253293
9787302115199
9787302142201
9787115253293
[root@bogon 桌面]# sort booklist.txt | uniq -c | awk '$1>=2 {print $0}'
2 9787115253293
3 9787302115199
2 9787302142201
[root@bogon 桌面]# sort booklist.txt | uniq -c | awk '$1>=2 {print $0}' >booklist-multi.txt
阅读(142) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
9787302115199
9787302142201
9787302115199
9787115242907
9787115253293
9787302115199
9787302142201
9787115253293
[root@bogon 桌面]# sort booklist.txt | uniq -c | awk '$1>=2 {print $0}'
2 9787115253293
3 9787302115199
2 9787302142201
[root@bogon 桌面]# sort booklist.txt | uniq -c | awk '$1>=2 {print $0}' >booklist-multi.txt
相关热门文章
给主人留下些什么吧!~~
评论热议