Say I have two files (file1.txt
& file2.txt
).
file1.txt
: (contains only list of words, one per line)
Car
Ricky
file2.txt
: (contains lines (phrases) using words from file1.txt
and more)
he has a Car
there is no food
I have a book
road is straight
Ricky is a good student
The output should be:
he has a Car
Ricky is a good student