Answers for "Print unique lines"

0

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
Posted by: Guest on August-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language