samedi 1 août 2015

How to use group in grep regex?

How to write a regex in grep command to have something like:

grep '[(group1)(group2)]' <file>

I'd like to find the lines in file that matches group1 or group2 in .

Aucun commentaire:

Enregistrer un commentaire