Sed delete empty lines after a particular line number
50842
How to delete blank lines starting from line 5
48457
Circumvent the sed backreference limit \1 through \9
86509
sed in-place line deletion on full filesystem?
98528
How to match a single quote in sed
98761
Regular expression to match any empty line or any line starting with a specified character
124920
sed one-liner to delete everything between a pair of brackets?
155976
How to join a line with a pattern with the next line with sed?
114572
Remove the first part of a string using sed
4941
Delete range of lines above pattern with sed (or awk)
85777
How do I replace the last occurrence of a character in a string using sed?
131755
inserting in the line using sed
22740
Delete the nth line from a matched string (which only occurs once in the file)
50542
Remove lines from file up to a pattern, unless the pattern doesn't exist
147927
How to extract text from a string using sed?
76938
How to insert a line using sed before a pattern and after a line number?
40205
Cleanly swap all occurences of two strings using sed
42619
How to delete a specific line in a file?