i need a script that can extract a sentence containing a word written in a list. the result is a text file with sentences extracted with a period as a sentence end limit. after and before a period is the extracted sentence.
word list text file:
extracted sentence written in "sentence" text file:
this is word 1 sentence.
this is word 2 sentence.
this is word 3 sentence.