Sed. How change line next to specific pattern
- by kirill
My file is:
DIVIDER
Sometext_string
many
lines
of random
text
DIVIDER
Another_Sometext_string
many
many
lines
DIVIDER
Third_sometext_string
....
How change lines following DIVIDER pattern
Result must be:
DIVIDER
[begin]Sometext_string[end]
many
lines
of random
text
DIVIDER …