I mean:
/usr/bin/awk '$1 ~ /^127|localhost/ {print $0}' /etc/hosts | /bin/sed "s/\s*\(${CURRENT_HOSTNAME}\)\(\s*\)/\t${NETCFG_HOSTNAME}/g"
I mean:
/usr/bin/awk '$1 ~ /^127|localhost/ {print $0}' /etc/hosts | /bin/sed "s/\s*\ (${CURRENT_ HOSTNAME} \)\(\s* \)/\t${ NETCFG_ HOSTNAME} /g"