|visits||member for||1 year, 1 month|
|seen||Oct 4 '13 at 12:46|
How can I resolve a hostname to an IP address in a Bash script?
The use of ping is what I needed as I need the value from the hosts file but the sed pattern parsing correctly but this worked ping -q -c 1 -t 1 your_host_here | grep PING | sed -e "s/^[^(]*[(]//" | sed -e "s/[)].*$//"