Comment 80 for bug 1452202

Revision history for this message
Hua Zhang (zhhuabj) wrote :

The following regex is more better

/bin/sed -i "/^[127|localhost]/s/${CURRENT_HOSTNAME}/${NETCFG_HOSTNAME}/g" /etc/hosts