I am trying print a line which has string 'usb' in it. I am using python 2.7.
The following is my code:
>>> fd=open('abc.text', 'r')
>>> for line in fd.readlines():
... print line
...
this is to test
python i/o
and other such stuff
btw what is usb
Usb is something
to look forward to..
>>> for line in fd.readlines():
... if 'usb' in line:
... print line
...
>>>