Multi Line Search (then insert)
Posted: Thu Aug 06, 2015 9:10 pm
Forgive possible elementary nature of this, but I want to search all text files within a folder for a fixed series of lines and then insert a set sequence of lines ahead of the found lines.
Note that the "searched for" lines will include blank lines.
e.g.
Mary had a
little
lamb
Then simply add a fixed set of lines before these
one two
three four
Mary had a
little
lamb
Thanks
Note that the "searched for" lines will include blank lines.
e.g.
Mary had a
little
lamb
Then simply add a fixed set of lines before these
one two
three four
Mary had a
little
lamb
Thanks