get_interfaces.sh 133 B

1
  1. ip l | grep 'state' | awk '{split($0,a," "); print a[2]}' | awk '{print substr($1, 1, length($1)-1)}' | awk '{ print " -", $1 }'