[oclug] Help with Awk

David F. Skoll dfs at roaringpenguin.com
Wed Apr 25 07:07:22 EDT 2001


On Wed, 25 Apr 2001, Dave Lewis wrote:

> k.. I'm lost.. I'm trying to use awk to extract the xx.xxx.xxx.xx ip (for
> example) from a ping request.  it's to let me know if one of my machines
> ip's has changed or not.

I think what you want is:

	host machine.domain.net | awk '{print $NF}'

--
David.




More information about the OCLUG mailing list