BSD SED: caractères supplémentaires à la fin de la commande D

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


Manisha Sharma