Newbie question -- any help very much appreciated: I want to be able to get grep (or whatever else would work) to return not only matching lines, but also the original input string:

An example may help: Suppose I have two files data1.txt and data2.txt:

data1.txt

Hello my name is foo.
What is your name?
Shall we meet at the bar?
Perhaps they will have food.

data2.txt...