I have a file, lets call it /etc/sysconfig/network.
i have a random hostname in the file:
HOSTNAME=randomhostname
I want to replace the whole line HOSTNAME=randomhostname with my own string HOSTNAME=goodhost
I need a short Send to say Find HOSTNAME=whatever and replace it with my correct host name.
Start Free Trial