Unig Command in Linux
uniq command use for removing repeated word or lines
- remove by repeated no
uniq -c <txt file>
- display only repeated lines
uniq -d <txt file>
there are no repeated lines so printing nothing
- display how much time word are matching in lines
uniq -dc <txt file>
- display which lines is not repeating in txt file
uniq -u <txt file>
here are no lines are repeating so printing all lines
- counting repeating line
uniq -uc <txt file>
Written By Sanjay Kumar
Comments
Post a Comment