How To Find duplicate IP
To find duplicate IP, you can create a text file and putting all the IP addresses into it and seperate them with line break.
eg:
Create a text file called ip.txt
[root@www ~]# touch ip.txtPut all the ip into the file and save it
[root@www ~]# vi ip.txt
192.168.1.22
192.167.1.22
192.168.1.23
192.168.1.23
192.168.1.70
192.168.1.88
192.168.1.89
192.168.1.40
192.168.1.63
192.168.1.77
192.168.1.79
192.168.1.78
192.168.1.11
192.168.1.82
192.168.1.24
192.168.1.91
192.168.1.64
192.168.1.94
192.168.1.21
192.168.1.96
192.168.1.95
192.168.1.69
“ip.txt” 138 lines, 2138 charactersExecute below command to find the duplicate ip
[root@www ~]# sort ip.txt | uniq -d#It will display all the duplicate IP
192.168.1.22
In this blog, I'll share my knowledge, discovery and experience related to IT and administering Linux. Most articles on this site are related to News, Review, Tips, My Life journal and many more. To find out more about me, click




