I'm not sure from the way the question is worded but, since it is a registry file the requirement might be just to change those lines with "jupiter" and "napre" (are they hostnames?) leaving other lines in the file untouched. -pe might be more appropriate.