I would like to know if have some sed, grep or awk regex to parse Cisco interface section and exclude if interface is down (shutdown), like example below.Example:!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!I'm using sed regex below to parse interface section:sed -n -e '/^interface/,/^!/p' file.txtBut the regex above, parse all interface and not exclude interface down.
Regex to Cisco Interface
linux;awk;cisco