I would like to know if have some
awk regex to parse Cisco interface section and exclude if interface is down (shutdown), like example below.
! interface FastEthernet0/1 ip address 10.16.0.1 255.255.255.224 ! interface FastEthernet0/2 ip address 10.17.0.1 255.255.255.224 shutdown !
sed regex below to parse interface section:
sed -n -e '/^interface/,/^!/p' file.txt
But the regex above, parse all interface and not exclude interface down.