How to get the part of a file after the first line that matches a regular expression

The following will print the line matching TERMINATE till the end of the file: sed -n -e ‘/TERMINATE/,$p’ Explained: -n disables default behavior of sed of printing each line after executing its script on it, -e indicated a script to sed, /TERMINATE/,$ is an address (line) range selection meaning the first line matching the TERMINATE … Read more