mirror of
https://github.com/cheat/cheat.git
synced 2025-09-04 02:58:29 +02:00
Refer sort -u
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
# show all lines without duplication
|
# show all lines without duplication
|
||||||
|
# "sort -u" and "uniq" is the same effect.
|
||||||
sort file | uniq
|
sort file | uniq
|
||||||
# show not duplicated lines
|
# show not duplicated lines
|
||||||
sort file | uniq -u
|
sort file | uniq -u
|
||||||
|
Reference in New Issue
Block a user