Ok, using the else statement worked, thanks. Hack, I'm not sure that would work for my case because if "grep" is in the line I don't want to do anything with it or than go to the next line and it shouldn't be in the file more than once.

Thanks guys.