Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

print unique lines

sort < file | uniq > output

cat file | sort | uniq
Comment

PREVIOUS NEXT
Code Example
Shell :: Yarn .gitignore for Zero Installs 
Shell :: list files on hadoop file system 
Shell :: command to install apache 
Shell :: increase upload size apache 
Shell :: python pip upgrade 
Shell :: Run emulator without Android studio. 
Shell :: remove trash linux 
Shell :: how to download youtube vides on linux 
Shell :: how to I list powershell functions 
Shell :: debian give write permission 
Shell :: adonis list routes 
Shell :: linux command to cut file and paste somewhere else 
Shell :: pocketsphinx 
Shell :: flutter doctor android license error 
Shell :: how to add an existing project to github 
Shell :: git add submodule 
Shell :: cdo mean of multiple files 
Shell :: bash loop 
Shell :: wslinux import 
Shell :: save android studio home bash_profile 
Shell :: git push error 
Shell :: bash uppercase string 
Shell :: test internet speed command line 
Shell :: dbeaver linux 
Shell :: how to push to heroku 
Shell :: install vue in laravel 
Shell :: bash return every nth line 
Shell :: push/upload git repo to github 
Shell :: ubuntu terminal find file recursive 
Shell :: svelte install 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =