Removing text from pattern1 up to and including 2nd match of pattern2?
102405
How can I delete everything between two markers in a file?
65270
How do I perform string matching and replacements?
54635
Removing files matching a numeric range regular expression
1451
How do I remove lines of a file which contain a specific string?
64272
Using sed to delete everything between two words?
71954
Regular expression to stop at first match
145207
Remove all lines in file A which contain the strings in file B
124823
Inserting a file into another file after the 1st occurrence of a pattern
86979
Insert text from file inline after matching pattern in another file
112494
How to remove a string from a string
29766
How to delete whole text from the beginning of a line with a certain string
117475
How to grep for contents after pattern?
81694
How to find & replace pattern WITHIN specific pattern using sed
34667
pattern matching in vim
142565
How to replace only the Nth occurrence of a pattern in a file?
50542
Remove lines from file up to a pattern, unless the pattern doesn't exist
152030
How to match a pattern with a pattern?