linux/solaris + verify duplicate valid IP address from file

view full story

http://unix.stackexchange.com – what the best way to find duplicate IP from file ( I have ksh script in this script I need to write function that check for duplicate IP ) for example if IP - 192.1926.23.52 exists twice in file - config_IP.txt then need to print "duplicate IP - xxx.xxx.xxx.xxx" solution can be with ksh or perl one liner , sed ,awk etc the format of the file should be as the following: more config_IP.txt # NETWORK adminstration #NETWORK private (HowTos)