Reputation
Next privilege 125 Rep.
Vote down
Badges
0 0 0
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jan
23
comment How can I resolve a hostname to an IP address in a Bash script?
Be aware that host sometimes returns multi-line output (in the case of redirects), you'll want host unix.stackexchange.com | tail -n1 if you just want the line with the IP address.