inxi is a full featured CLI system information tool. It is available in most Linux distribution repositories, and does its best to support the BSDs.
Go to file
inxi-svn d8c2368418 major fix for ip addr output, handled weak cases, now it inserts a newline before each record item with sed to create discrete records for gawk to parse easily.
this solves the problem exposed when there is no ipv6 output, and thus the last line used to test for end of record was vanished.

now it's all just treated like ifconfig except a few small differences of which item to slice out.
2011-06-25 01:17:16 +00:00
inxi major fix for ip addr output, handled weak cases, now it inserts a newline before each record item with sed to create discrete records for gawk to parse easily. 2011-06-25 01:17:16 +00:00