Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

uniq linux

# uniq command filters outputs to be unique. For example:
sort letters.txt 
a b b c c c 
sort letters.txt | uniq
a b c
sort dogs.txt | uniq -d # Only shows duplicated lines
b c
 
PREVIOUS NEXT
Tagged: #uniq #linux
ADD COMMENT
Topic
Name
8+7 =