The OSX sed version is not the same as most Linux systems.
It extends the -i option to give you the option to save a file with a different extension, but requires input for this extension.
If you just want to overwrite the file in place, you need to use sed -i "" ...sedCmd.... fileName to rename your file in place.
In a comment by @JamesMcMahon, see the full document for OSX / BSD sed here .
Hope this helps.
source share