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:
word 1
word 2
word 3
extracted sentence written in "sentence" text file:
this is word 1 sentence.
this is word 2 sentence.
this is word 3 sentence.
yes.
the problem is that I don’t do homework, not my own and certainly not someone else’s.
and this is some form of homework, or test, with a rigid and arbitrary requirement.
why? because what you are asking for is, IMO, not something that solves a problem in the real world.
so let’s say there is a word file that exists with 3 words:
cat
dog
tree
and a sentence file with 6 sentences:
1. The cat ate the dog.
2. The dog ate the tree.
3.