BSD sed: extra characters at the end of d command
For anyone who found this question due to a similar error message, but caused by an attempt to in-place edit on Mac OS X As per https://github.com/lmquang/til/issues/18: OS X requires the extension to be explicitly specified. The workaround is to set an empty string: $ sed -i ” ‘s/megatron/pony/g’ /path/to/file.txt ^^ man sed: -i extension … Read more