I am trying to replace the string
: 'development'
with
: 'production'
using sed
.
I tried a few options including:
sed -i "s|: \'development\'|: \'staging\'|g" index.php
but without any luck. Output:
sed: 1: "index.php": command i expects \ followed by text
Can someone help?