jeudi 22 octobre 2015

sed pattern match and then multiple actions

I want to search for a variable numeric value at the end of a line, once found, do two things:

  • append something to the end of that line (for example, an html tag)
  • move down as many line as that numeric value and append a line there as well (for example, close the preceding html tag).

Any quick pointers please?

Aucun commentaire:

Enregistrer un commentaire