Delete n lines after pattern and m lines before pattern
14398
How to grep-inverse-match and exclude "before" and "after" lines
106221
Remove extra header lines from file, except for the first line
115046
grep one line before the match plus the match
56368
How to use PHP to delete X number of lines from the beginning of a text file?
158113
Move first N lines of output to end without using temporary file
126833
Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
8307
Delete n lines in the up direction in vim
107683
Delete columns in text files with specific string
58770
Remove the last line from a file in Bash
154316
How to delete specific lines from a txt file
98217
Using Sequence to delete a part of an expression
1451
How do I remove lines of a file which contain a specific string?
10174
How to delete duplicate lines in a file without sorting it in Unix?
124497
remove lines that contain a specific text in a file
48058
Deleting Lines Containing a Specified String in Different Files
134655
How to edit next line after pattern using sed?
66920
How to delete from a text file, all lines that contain a specific string?