Linux sort用法

首先编写个测试文件,内容以下:web danni@vm-xxx-18:/home/danni/study/shell $ cat a.txt 23 12 23 12 33 44 11 22 33 44 cat a.txt | sort | uniq -c uniq -c:合并相邻的重复记录,并统计重复计数。 因为 uniq -c 只会合并相邻的记录,因此在使用
相关文章
相关标签/搜索