in reply to Looking for a string from a huge log file

it keeps on printing the same string for all the other ID's

It is hard to imagine how a program that only has two print statements, one to STDOUT and one to a file, outside any loop "keeps on printing". Can you clarify?

  • Comment on Re: Looking for a string from a huge log file