Guest User

Untitled

a guest
Oct 9th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.16 KB | None | 0 0
  1. {
  2.     if ($0 ~ /^Slave Interface/)    { curif=$3;      };
  3.     if ($0 ~ /^Permanent HW addr/ ) { eth[curif]=$4; };
  4. }
  5. END {
  6.   for (x in eth) print x " " eth[x]
  7. }
Advertisement
Add Comment
Please, Sign In to add comment