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 只會合併相鄰的記錄,因此在使用
相關文章
相關標籤/搜索