| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 4 months |
| seen | Jan 23 at 4:59 | |
| stats | profile views | 1 |
|
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. |