How do I delete subsequent lines after matching a string or digit?
35158
Show all the file up to the match
75453
How do I remove newline character from lines preceding a particular pattern?
97650
How to insert text after a certain string in a file?
48468
How to delete a specific line of a paragraph in AppleScript, while retaining the original format of the text?
14843
How to remove blank lines from a file (including tab and spaces)?
137786
How to remove the lines which appear on file B from another file A?
8307
Delete n lines in the up direction in vim
29090
Return only the portion of a line after a matching pattern
62405
Regex replacement capture followed by digit
107683
Delete columns in text files with specific string
65270
How do I perform string matching and replacements?
69395
How do I remove a substring from the end of a string?
4941
Delete range of lines above pattern with sed (or awk)
123869
Reliably Remove Newlines From String
6168
How do I delete the first n lines and last line of a file using shell commands?
68318
How can I remove the first line of a text file using bash/sed script?
102049
How to delete all lines that do NOT contain a certain word in Vim?