I use sed -n START_LINE,FINISH_LINEp filename > newfileto extract a specified range of text from a text file, e.g. sed -n 45,50p datafile > newfile.How can I use this to extract multiple portions of text which are always bordered by the same pattern of text? e.g. the text I want to extract always begins 39 lines down from Subject:????? and ends immediately before Start Date: ??/??/??.
In a text file how can I sed multiple portions of text bordered by specific text patterns of text on Unix?
text processing;sed;data