Best way to search file or string for duplicate entries

view full story

http://nixcraft.com – I have a very large .conf file which I am adding and removing entries from daily. What is the best method for checking this for duplicate entries. thank you I am running RHEL 5 but prefer to do this from the shell (HowTos)