Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

uniq linux

# 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
Comment

uniq command in linux

The uniq command can count and print the number of repeated lines.
Just like duplicate lines, we can filter unique lines (non-duplicate lines)
as well 
and can also ignore case sensitivity. 
We can skip fields and characters before comparing duplicate lines 
and also consider characters for filtering lines.
Comment

PREVIOUS NEXT
Code Example
Shell :: how to git ignore 
Shell :: powershell 
Shell :: openssl command 
Shell :: sed replace from match to end of line 
Shell :: linux zip current directory 
Shell :: fslmaths threshold 
Shell :: docker force new build without cache 
Shell :: change git 
Shell :: show git branch on terminal 
Shell :: windoes debloat 
Shell :: download teamviewer for ubuntu 20.04 
Shell :: merge csv files powershell 
Shell :: git stash specific files 
Shell :: gitignore command 
Shell :: linux write each line from file to new file 
Shell :: git change commit message for merge 
Shell :: brew install kubectl specific version 
Shell :: makepkg resolve auto dependencies 
Shell :: send tag to remote git 
Shell :: why is do I need to upload my password 3 times git 
Shell :: apt-get install ping?trackid=sp-006 
Shell :: linux log serial to binary file 
Php :: php console log var_dump 
Php :: woocommerce checkout shortcode 
Php :: WordPress asking for FTP credentials on localhost 
Php :: refresh a specific migration in laravel 
Php :: pdo last insert id 
Php :: Warning: Cannot modify header information - headers already sent by (output started at C:xampphtdocsheermatkamyprofile.php:48) in C:xampphtdocsheermatkamyprofile.php on line 144 
Php :: validation file laravel 
Php :: php header refresh 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =