in reply to Help editing a file based off seach criteria
Once you see the logic laid out, you'll be able to write the equivalent code.