I need to do the following:
A script that searches in a flat file urls, and if part of the urls coincide, I printed them on the screen or I saved them in another flat file. For example, if I have a flat file with the following content:
www.google.com.ar
www.google.com.mx
www.yahoo.com.ar
www.yahoo.com.mx
I go through the flat file, and show me: Exit 1:
www.google.com.ar
www.google.com.mx
Exit 2:
www.yahoo.com.ar
www.yahoo.com.mx
(Clarification, the urls are going to vary, they will not always be the and there may be new urs).