Replace text between two lines SED

From Michael's Information Zone
Jump to navigation Jump to search

[1]

  • Remove the lines between the patterns.
sed '/PATTERN-1/,/PATTERN-2/{//!d}' input.txt