I'm chaining together multiple commands on the command line. Is there any tool that will allow me to capture output starting with a specific pattern? For example, if I have the following output produced:
line 1
line 2
line 3
line 4
my_pattern
line 5
line 6
line 7
Is there some command that will allow me to capture the output starting with my_pattern? This result in the lines
my_pattern
line 5
line 6
line 7
being captured. The my_pattern line is not mandatory to be included.