RE: Show command output modifiers

From: Dan Lockwood (dlockwood@coe.shastalink.k12.ca.us)
Date: Fri May 02 2003 - 01:16:44 GMT-3


I setup an alias to modify output from show run, but have never found a way to limit the output. I found this alias very helpful and hopefully some others of you will too.
 
alias exec f show run | begin
 
You can use it like this:
 
f router ospf
 
to jump right to the OSPF routing process. And repeat.
 
Cheers,
Dan

        -----Original Message-----
        From: ccie2be [mailto:ccie2be@nyc.rr.com]
        Sent: Thu 5/1/2003 7:23 PM
        To: Group Study
        Cc:
        Subject: Show command output modifiers
        
        

        Hi all,
        
        Is there a way to limit the output of a show command to a certain number of
        lines starting at a certain point in the config file?
        
        For example, let's say I want to see the config file starting from "router
        ospf" plus the next 10 lines. I know that "show run | begin router ospf" will
        output the config file starting at router ospf but how do I limit the output
        to just the lines beginning with router ospf?
        
        Thanks, Jim



This archive was generated by hypermail 2.1.4 : Mon Jun 02 2003 - 15:13:35 GMT-3