Remove all the lines before the first line that contains a match?
50542
Remove lines from file up to a pattern, unless the pattern doesn't exist
89219
How can I find and replace only if a match forms a whole word?
65417
How to get all lines between first and last occurrences of patterns?
55246
Remove line containing certain string and the following line
76938
How to insert a line using sed before a pattern and after a line number?
61973
remove lines that is newer than the given date in a file
4941
Delete range of lines above pattern with sed (or awk)
14398
How to grep-inverse-match and exclude "before" and "after" lines
10652
Removal of lines with no more or fewer than 'N' fields?
134655
How to edit next line after pattern using sed?
71954
Regular expression to stop at first match
8112
How to add text to end of line when pattern is matched?
113282
how to extract part of a filename before '.' or before extension
32146
sed to remove all after a string?
114572
Remove the first part of a string using sed
80516
Return previous line of all matches
27852
How to grep a specific line _and_ the first line of a file?