On Fri, 13 Jul 2007, Terry Carroll wrote: > Try this: > > for line in infile: > if line.find("10.52.10.11") != -1: > outfile.write(line)
No, don't. Alan's solution is much nicer. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor