Replace text between two lines SED
Jump to navigation
Jump to search
- Remove the lines between the patterns.
sed '/PATTERN-1/,/PATTERN-2/{//!d}' input.txt