The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-21-2008
ThreeDot ThreeDot is offline
Registered User
 

Join Date: Jan 2008
Posts: 3
Check host file for duplicate entries

I need a KSH script that will check a host file for duplicate IP's and/or host names and report out the errors. Anyone out there have one they would like to share?

Something like:

Hostname blahblah appears X times
IP Address xxx.xxx.xxx.xxx appears X times

TIA
Reply With Quote
Remove advertisements
!!
Forum Sponsor