I have a new Ubuntu 12.04 VPS. I am trying to write a setup script that completes an entire LAMP installation. Where I am having trouble is appending a line to the /etc/ho
/etc/ho
you can use sed, like:
sed
sed '/Venus/ a\ 192.241.xx.xx venus.example.com venus' /etc/hosts