Extract lines between two patterns when there are multiple matches in the file
59603
How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
2558
Fast way of finding lines in one file that are not in another?
153258
Find the line number which contains the pattern using custom regex delimiter
50542
Remove lines from file up to a pattern, unless the pattern doesn't exist
118486
Detecting pattern at the end of a line with grep
14398
How to grep-inverse-match and exclude "before" and "after" lines
1293
Match patterns on list of Strings
112581
Replacing pattern after nth match is found on each line?
60826
Regular expression matching a multiline block of text
50943
shell test whether multiple lines string contains specified pattern in last line
77125
Print all lines between a searched pattern of a text file to different file
8298
How to find/grep what is between string1 and string2?
35989
Match a pattern only when NOT preceded or followed by another pattern
154473
How to ignore list elements when extracting with pattern matching
759
How do I match any character across multiple lines in a regular expression?
124497
remove lines that contain a specific text in a file
14974
Search for a pattern in a file and move it to the new files one by one