摘要: cat sorttest | sort | uniq -c | sort -k1 sorttest内容如下: 阅读全文
posted @ 2017-05-12 18:11 刨根问底_liang 阅读(467) 评论(0) 推荐(0) 编辑
摘要: cat sorttest | sort | uniq -c sorttest文件内容如下 阅读全文
posted @ 2017-05-12 18:07 刨根问底_liang 阅读(2533) 评论(0) 推荐(0) 编辑
摘要: uniq : 默认(去重) | -d(显重) | -u(删重) 语法:uniq [选项] 文件 选项 -c或--count 在每列旁边显示该行重复出现的次数 -d或--repeat 仅显示重复出现的行列 -u或--unique 仅显示出现一次的行 -f<栏位>或--skip-fields=<栏位> 阅读全文
posted @ 2017-05-12 17:59 刨根问底_liang 阅读(231) 评论(0) 推荐(0) 编辑