Uncategorized Print Only Matched String Sed / Lets say we need to print only strings between two lines that contain patterns 'begin' and 'end'. The default output behavior is which tells sed to print only those lines within the range, defined by where it matches tv connect to the end i would like to search for two strings per line then print the next x integers after each string.