I am now having problems combining a "foreach" or "while" command with a search command. Basically, I need to 1st search a file line by line for a string, then if that string is found to change only the strings that match the search criteria. For instance given the file below I want to search for all the lines that have "Mike" in them. Then if found to increment the numbers by 3. If not found, print out an error message. Can anyone help?