Perform a grep and edit the results directly