Categories
Search and replace via sed with line break?
We have
cat test one two three four
sed s/two\nthree// test
sed s/two.*three// test
one two three four
one four
Answer the question
In order to leave comments, you need to log in
sed -rz 's/two\nthree\n//' test
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question