You want to print only those lines that match either “text” or “blah” (or both), where the distinction between “and” and “or” is crucial.
sed -n -e '/text/{p;n;}' -e '/blah/{p;n;}' your_data_file
-n means that printing is not performed by default. The first model searches for "text", prints it if it is matched, and proceeds to the next line; the second template does the same for blah. If "n" was not, then a line containing "text and blah" will be printed twice. Although I could only use -e '/blah/p' , symmetry is better, especially if you need to expand the list of matching words.
If your sed version supports extended regular expressions (for example, GNU sed does with -r ), you can simplify this:
sed -r -n -e '/text|blah/p' your_data_file
Jonathan Leffler Mar 02 2018-12-12T00: 00Z
source share