Very inelegant, but you get the idea: counter = 0
f = open("test.txt")
for line in f.readlines():
if line[0] != "$" and counter < 2:
counter += 1
continue
else:
print line,
--
Jerry
--
http://mail.python.org/mailman/listinfo/python-list
