用linux命令分析文件-排序-统计(sort, uniq, awk)

来源:互联网 发布:linux wifi发送at指令 编辑:程序博客网 时间:2024/06/01 10:40
[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




<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>
阅读(142) | 评论(0) | 转发(0) |
0

上一篇:中断解析

下一篇:Linux服务器关闭SeLinux的方法

相关热门文章
  • A sample .exrc file for vi e...
  • IBM System p5 服务器 HACMP ...
  • 游标的特征
  • DB2 9 应用开发(733 考试)认...
  • busybox的httpd使用CGI脚本(Bu...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击