2026-03-12 20:23:15
This commit is contained in:
10
vdh/ip_overview.awk
Normal file
10
vdh/ip_overview.awk
Normal file
@@ -0,0 +1,10 @@
|
||||
ifconfig -a | awk -F '[ :]+' '
|
||||
BEGIN {
|
||||
printf "%10-s %15-s %15-s\n", "Interface", "IP Adress", "Mask"
|
||||
printf "%10-s %15-s %15-s\n", "----------", "---------------", "---------------"
|
||||
}
|
||||
{ if ($0 ~ "Link encap:")
|
||||
{ interface = $1 }
|
||||
if ($0 ~ "inet addr")
|
||||
{ printf "%10-s %15-s %15-s\n", interface, $4, $8 }
|
||||
}'
|
||||
Reference in New Issue
Block a user