Delete Between Two Matching Lines

This page answers questions like these:

Related Links:
Output the Lines Between Two Matching Lines
Output Lines of a File in Reverse Order
Join Lines of Text File Together
Count Occurrences of a Hexadecimal Sequence in a File
Count Occurrences of a String in a File
Find Positions of a Hexadecimal Sequence in a File



Delete the Lines Between Two Matching Lines (Inclusive)

sed '/PATTERN1/,/PATTERN2/d' FILE ...



Related Links:
Output the Lines Between Two Matching Lines
Output Lines of a File in Reverse Order
Join Lines of Text File Together
Count Occurrences of a Hexadecimal Sequence in a File
Count Occurrences of a String in a File
Find Positions of a Hexadecimal Sequence in a File

Home  >  Linux / Unix  >  Delete Between Two Matching Lines


Tags: delete lines between two matching patterns, remove lines between two matching patterns, linux, unix, solaris, bsd, aix

file-delete-lines-between-two-matching-lines.txt
Linux-Unix/delete-lines-between-two-matching-lines.htm
2