[Tutor] how to print lines which contain matching words or strings

Bob Gailer bgailer at gmail.com
Sun Nov 18 13:19:26 EST 2018


On Nov 18, 2018 12:14 PM, "Asad" <asad.hasan2004 at gmail.com> wrote:
>
> Hi All ,
>
>        I have a set of words and strings :
>
> like :
>
> p = [A ,"B is good" ,123456 , "C "]
>
> I have a file in which I need to print only the lines which matches the
> pattern in p
>
> thanks,

you are welcome, but I'm not sure what you're thanking us for. I don't see
any kind of request in your email.

There are various resources on how to ask effective questions. You might
try Googling that topic.

I have more that I will say later.

Bob Gailer


More information about the Tutor mailing list