Search and filter URL in a flat file (Bash) [closed]

1

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).

    
asked by Roman Racca 02.11.2018 в 02:47
source

0 answers