Hi all,
Could s.o. help me in finding a script for the following task: given the two input-files 'list.txt' and 'text.txt', I need to have a script that looks for all the words (listed in the list.txt file) in the text.txt file and places them between §.
So, if list.txt is for instance:
cat
something moving in the garden
walking with
was feeding
And text.txt is for instance:
John was walking with Mary
John was feeding his cat
John saw something moving in the garden
The output should be:
John was §walking with§ Mary
John §was feeding§ his §cat§
John saw §something moving in the garden§
I hope that this example is clear enough. Thanks in advance,
J
Could s.o. help me in finding a script for the following task: given the two input-files 'list.txt' and 'text.txt', I need to have a script that looks for all the words (listed in the list.txt file) in the text.txt file and places them between §.
So, if list.txt is for instance:
cat
something moving in the garden
walking with
was feeding
And text.txt is for instance:
John was walking with Mary
John was feeding his cat
John saw something moving in the garden
The output should be:
John was §walking with§ Mary
John §was feeding§ his §cat§
John saw §something moving in the garden§
I hope that this example is clear enough. Thanks in advance,
J