I'd like to removed a semicolon from one of these lines in the php.ini using bash shell command (perhaps using sed
). How would I do that?
;extension =php_curl.dll
; extension=php_gd2.dll
;extension = php_mbstring.dll
;extension= php_openssl.dll
I intentionally added spaces here and there.
What I've tried:
sed -e "s/^;extension\s=\sphp_gd2\.dll$/extension=php_gd2\.dll/" -i php.ini
This just places everyting into a single line:
;extension =php_curl.dll ; extension=php_gd2.dll;extension = php_mbstring.dll;extension= php_openssl.dll