samedi 27 juin 2015

SED, deleting lines between the patterns

This is regarding deleting the lines between the pattern excluding the lines with pattern using SED. If the seconds pattern appears twice or thrice.. i want the lines to be deleted till the last occurrence of the second pattern.. Please help me in writing the regex for this.. Thanks a lot.

Aucun commentaire:

Enregistrer un commentaire