我有两个文本文件,一个是我目前正在工作的文件,另一个是字典。我想做的是使用后者作为输入来搜索第一个。我想突出显示所有匹配的行。
例如:
文件1:
I like eggs
I like meat
I don't like eggplant
My mom likes chocolate
I like chocolate too
文件2:
meat
chocolate
在此示例中,应突出显示这些行:
I like meat
My mom likes chocolate
I like chocolate too