samedi 26 septembre 2015

Grep three patterns in multiple files

I need to grep AND three patterns in multiple files , I found I way to grep AND two patterns in multiple file {grep -E 'pattern1.*pattern2' *} for example ,I have two files

  1. File1 contain

    1 ,2 ,3

    4 ,5

  2. File2 contain

    1,2,3

    4

I need to grep the file the contain 1 and 3 and 5

Aucun commentaire:

Enregistrer un commentaire