< Browse > Home / Linux / Blog article: How To Find duplicate IP

| RSS

How To Find duplicate IP

May 18th, 2009 | 7 Comments | Posted in Linux

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

Related Posts
  • No Related Posts
Leave a Reply 1777 views, 4 so far today |
Related Posts
  • No Related Posts
  • qorel

    sory…can i know this steps is for what???
    or this steps for make our IP always randoms automaticly??

  • qorel

    sory…can i know this steps is for what???
    or this steps for make our IP always randoms automaticly??

  • http://blog.chenhow.net chenhow

    This show you the command to find duplicate IP.

  • http://blog.chenhow.net chenhow

    This show you the command to find duplicate IP.

  • qorel

    sory…can i know this steps is for what???
    or this steps for make our IP always randoms automaticly??

  • http://blog.chenhow.net chenhow

    This show you the command to find duplicate IP.

  • Avatar

    it’ quite stupi as u wrote.

    It does not find duplicate ips it finds duplicate rows in a file…