Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
#
Return to CLI Magic: Learn to talk awk
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
Correction
Posted by: Anonymous Coward on January 17, 2006 12:35 PMThis code did..<nobr> <wbr></nobr>/sbin/ifconfig | awk -F'[<nobr> <wbr></nobr>:]+' '$1 {iface=$1}<nobr> <wbr></nobr>/inet/ {print iface, "=", $4;iface=""}'
(The second test `iface' changed to `/inet/' )
#