Changed sed to gsed for in place