Horje
Print unique lines Code Example
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
print unique lines
sort < file | uniq > output

cat file | sort | uniq




Shell

Related
cordova sqlite storage plugin android 11 Code Example cordova sqlite storage plugin android 11 Code Example
batch remove double quotes from argument Code Example batch remove double quotes from argument Code Example
how to stop a program from running linux Code Example how to stop a program from running linux Code Example
ionic install copycliboard Code Example ionic install copycliboard Code Example
can we declare state outside the class Code Example can we declare state outside the class Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14