How does one stop the while statement looping unnecessarily through all lines in a file after it has found what it was looking for? I do not want to use 'exit;' as I want the remaining script to do other work once it found something.