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 :: # /bin/bash for launching ec2 
Shell :: how to search string in subdirectory in unix 
Shell :: how to exit docker 
Shell :: git checkout previous commit 
Shell :: github create repo 
Shell :: git remote repository not found vs code 
Shell :: install python mysqlclient on mac 
Shell :: no sound on ubuntu 
Shell :: silent install google chrome powershell 
Shell :: npm install webpack 
Shell :: ubunto give permission for a user 
Shell :: find exec rm 
Shell :: rpi install chomedriver 
Shell :: gtk windows install 
Shell :: delete commit 
Shell :: composer install fast download 
Shell :: remove port iptables 
Shell :: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-idlotqqi/cryptography/ 
Shell :: bash split string into array 
Shell :: aab to apk 
Shell :: find files size greater than 100mb in linux 
Shell :: fedora microsoft font 
Shell :: get working directory rstudio 
Shell :: command to update ubuntu 
Shell :: Creating a new Laravel application 
Shell :: git rename local branch 
Shell :: remove white space from stering in bash 
Shell :: ip route delete linux 
Shell :: linux x11 dev 
Shell :: yum clean all 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =