Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

uniq bash

# 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 #bash
ADD COMMENT
Topic
Name
1+3 =