I've the following hostnames & ip addresses saved in host_ip.txt
Based on this list, I need to create the following script.
where by HH is a hostname
and XXXX is an ip address
So the final output would be something like this.
Currently, I'm doing it manually, replace, copy and paste. Since there are hundreds of Hosts & IP Addresses, I really appreciate if someone could help me to automate this task using a script or any methods. Thanks in advance