http://qiita.com/qt-luigi/items/76f7955d68418f967efb I would do this.
for line in open("text file.txt"): if "Search character" in line: print line,
Recommended Posts