Hello Lucas,  Might try this .

host $1 | awk '{print $4}'

On Mon, 22 Feb 1999, Lucas Leonardo wrote:
> Hi, does anybody know how to get a host IP address given the host name
> in a script?
> 
> Thank you.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 

                                , JimL
+-----------------------------------------------------------------------+ 
|  James W. Laferriere  -  Network  Engineer  - [EMAIL PROTECTED] |
|   System Techniques   -  25416  -  22nd S.  - Des-Moines, WA  98198   |
|     Give me VMS     -or-   Give me Linux   -but-   only on AXP        |
+-----------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to