in reply to Matching a cisco interface config
Try
#! perl -slw use strict; $/ = "!\n"; ## set the delimiter while( <DATA> ) { print "'$_'"; } __DATA__ interface GigabitEthernet6/10 description TRUNK-KBV-SW001 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,30,31,45,156-158 switchport mode trunk switchport nonegotiate ! interface GigabitEthernet6/11 description Offices switchport access vlan 31 spanning-tree portfast ! interface GigabitEthernet6/12 !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching a cisco interface config
by FloydATC (Deacon) on Jan 12, 2010 at 20:00 UTC | |
by BrowserUk (Patriarch) on Jan 12, 2010 at 21:02 UTC |