regex grep/pipe options

From: Ladee Geek <ladeegeek_at_gmail.com>
Date: Sat, 19 Feb 2011 21:52:10 -0500

looking for a solution for parsing multiple items in a show command that can
be done without using the grep/pipe.

for instance: show run | section Fastethernet | Serial. Is there a way to
do this with OUT the pipe?

R1#sh run | s Fastethernet | Serial
interface Serial0/0/0
 ip address 10.10.15.245 255.255.255.252
 encapsulation frame-relay IETF
 frame-relay interface-dlci 105 ppp Virtual-Template15
 no frame-relay inverse-arp
interface Serial0/1/0
 ip address 10.10.15.242 255.255.255.252
 encapsulation ppp
 ip ospf network broadcast
 ipv6 address FC01:A28:24:B::/64 eui-64
 ipv6 ospf 1 area 1
 no peer neighbor-route
 auto qos voip
 clock rate 2000000
 service-policy output AutoQoS-Policy-UnTrust

-- 
r/
LG
Blogs and organic groups at http://www.ccie.net
Received on Sat Feb 19 2011 - 21:52:10 ART

This archive was generated by hypermail 2.2.0 : Tue Mar 01 2011 - 07:01:50 ART