マオのITとかゲーム

ITを始めたばかりの私が発信するブログ

uniq コマンド

●uniq
|
重複行を削除するコマンド


例:
$ cat num.txt
1
1
2
2
2
3
4
4

$ uniq num.txt
1
2
3
4