Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Print unique lines

# -u, --unique
# only print unique lines
 
$ cat file.txt
1
1
2
3
5
5
7
7
$ uniq -u file.txt
2
3

sort < filea | uniq > fileb
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Print #unique #lines
ADD COMMENT
Topic
Name
8+4 =