There is a little bit more to it (but not much), and I do apologize for over-simplifying.
Let's suppose the code is actually:
<foo>3</foo> <bar>a</bar> <foo>14</foo> <bar>bc</bar> <foo>159</foo> <bar>def</bar> [...]
I want to simply echo lines that do not contain the "foo" tag to the output file.
In reply to Re^2: sequential substitutions
by Anonymous Monk
in thread sequential substitutions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |