Browse > Home / Ubuntu / How To Find duplicate IP

| Subcribe via RSS

How To Find duplicate IP

May 18th, 2009 Posted in Ubuntu

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.txt

Put 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 characters

Execute 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

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Live
  • FriendFeed
  • PDF
  • Reddit
  • Twitter
  • qorel
    sory...can i know this steps is for what???
    or this steps for make our IP always randoms automaticly??
  • This show you the command to find duplicate IP.
blog comments powered by Disqus