import linecache
def eachlineof(filename):
with open(filename, 'r') as f:
for cnt, line in enumerate(f):
a = str(cnt) + ',' + line.strip('
')
yield a
for i in eachlineof('t.txt'):
if 'you' in i:
num = i.split(',')[0]
linecache.clearcache()
print linecache.getline('t.txt',int(num)+1).strip('
')