title: Get IP from hostname or FQDN using shell scripting
body: <p>I want to extract IP from Hostname or FQDN using a shell script. If I Ping using the hostname it gives me the IP in the output but how do I extract that from the output to use in my shell script.</p>