Hi guys,
I'm trying to write a script to do a fully automated web server installation. I would need a bit of help in trying to custom some of the values in the files. For example at the moment I am trying to replace the values in the php.inifile using
This is not working and I gather it is because of the spaces. Could someone help me to work this out? I have the feeling that I might need to use regular expression here but this is on my list of things to learn. Also would I be better using awk? I am new to both of them.
Fred
I'm trying to write a script to do a fully automated web server installation. I would need a bit of help in trying to custom some of the values in the files. For example at the moment I am trying to replace the values in the php.inifile using
Code:
sed -i 's/memory_limit = 128M/memory_limit = 32M/g' /usr/local/etc/php.ini
Fred