Linux命令 uniq
来源:互联网 发布:软件项目预算模板 编辑:程序博客网 时间:2024/04/27 13:59
uniq的全称是unique,意思是唯一的
用途
可以讲重复的数据仅列出一个显示
uniq [-ic]
参数:
-i (ignore):忽略大小写
-c (count) : 进行计数
范列一:使用last讲账号列出,仅取出帐号列,进行排序后仅取出一位
last | cut -d ' ' -f1 | sort | uniq
范列二:承上例,如果我还想要知道每个人的登录次数
last | cut -d ' ' -f1 | sort | uniq -c
这个命令用来将重复的行删掉只显示一个
0 0
- linux uniq命令用法
- linux uniq命令
- linux uniq命令详解
- linux uniq使用命令
- linux uniq使用命令
- 【转帖】Linux Uniq命令
- linux uniq命令
- linux uniq命令
- linux uniq 命令详解
- linux uniq 命令介绍
- linux uniq命令详解
- linux uniq命令详解
- Linux uniq命令
- Linux命令--uniq
- linux uniq命令详解
- linux uniq命令详解
- Linux uniq命令
- Linux命令学习:uniq
- javascript 之this及作用域整理
- 小知识点(11)微信JS SDK 验证和简单使用
- 嵌入式linux之IIS驱动
- 使用ViewPager实现左右循环滑动
- POJ Matrix ( 二维树状数组)
- Linux命令 uniq
- mysql cluster管理节点配置详解
- LeetCode3.2(Implement strStr())
- C++面试基础题错题集 day one
- 隐写术入门篇——乌云大神文章收藏
- 名片设计作品
- 用二分代码分析递归运行过程
- Python正则表达式指南
- Leetcode -- Maximum Subarray