i have the following regex command in my bash script:
sed -i -e 's/\(expose_php = On\)/\1expose_php = Off/' /etc/php/php.ini
Instead of replacing:
expose_php = On
with
expose_php = Off
it's doing the following:
expose_php = Onexpose_php = Off
This is my first crack at bash and sed... any pointers would be appreciated.
expose_php = Onand then printing back with\1.