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

Asad asad.hasan2004 at gmail.com
Sun Nov 18 10:18:55 EST 2018


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,

-- 
Asad Hasan
+91 9582111698


More information about the Tutor mailing list