How to show previous line to matching pattern with grep and not the matching line?
105605
Find each line matching a pattern but print only the line above it
57165
How do I grep lines ending on a specific expression
37544
Starting a line where the previous line finishes
128116
How to find patterns across multiple lines using grep?
29090
Return only the portion of a line after a matching pattern
29349
Printing with sed or awk a line following a matching pattern
119124
grep for string not preceded by another string
100911
How to "grep" for line length in a given range?
150490
Using grep to find a string
138002
Add blank line after every result in grep
23494
How to make  grep display only the matching regexp?
50962
Reading grep patterns from a file
137070
If column matches another file, print every line with match (awk/grep)
134283
Identify duplicate lines in a file without deleting them?
35989
Match a pattern only when NOT preceded or followed by another pattern
118486
Detecting pattern at the end of a line with grep
59603
How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?