in reply to Re: Perl Regex
in thread Perl Regex

I think I know the issue. The show command shows all ports that match the criteria. GigabitEthernet1/0/3 is down, line protocol is down (notconnect) Last input never, output never, output hang never Last input 17w0d, output 00:00:00, output hang never Last input 38w0d, output 00:00:00, output hang never Last input 48w5d, output 00:00:00, output hang never Last input 1y27w, output 00:00:00, output hang never GigabitEthernet1/0/18 is down, line protocol is down (notconnect) Last input never, output 6w6d, output hang never Those results go into a array. I can not figure out how to trim the array results to say, GigabitEthernet1/0/3 Linux