Need advice performing a search

Kia Arab karab at stsci.edu
Tue Apr 25 15:58:38 EDT 2000


I am trying to search a file for two strings. If *either* string is
found, I need the line in which the string was found to be returned  (or
somehow extract the line). It should keep searching and keep returning
the lines where it finds either string, until the end of file is
reached.

Any suggestions?



More information about the Python-list mailing list