101 reputation
1
bio website
location United States
age 31
visits member for 1 year, 11 months
seen Oct 4 '13 at 12:46

Jan
18
awarded  Supporter
Jan
18
comment 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/[)].*$//"