I have a string
server.ip=192.168.1.200
And I need to write the above statement completely into the file.
How can this be done?
This is what I'm trying to do...
set client_config = xmlrpc_server.properties
echo 'serverurl=http://'${IP}':8000' >> %${client_config}%
echo 'port=/RPC2' >> %${client_config}%
It doesn't get added to the file.
This worked for me
$ FOO="192.168.1.1"
$ echo "serverurl=http://$FOO:8000" >> x.conf
$ more x.conf
serverurl=http://192.168.1.1:8000
I'm using zsh. I verified it with bash as well. What's the problem you get when you do this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With