Re: Limit output

From: Nick Matthews <matthn_at_gmail.com>
Date: Thu, 12 Aug 2010 11:37:07 -0400

This is a little more scalable:

R1#sh run linenum | include ( [1-2] : )

for example this would be 50 lines:

R1#sh run linenum | include ( 5. : )

You know you're ccie-caliber when you're using regular expressions in your
show commands.

-nick

On Thu, Aug 12, 2010 at 10:53 AM, garry baker <baker.garry_at_gmail.com> wrote:

> R1#sh run linenum | include ( 1 : )|( 2 : )
> 1 : !
> 2 : version 12.4
> R1#
>
>
> --
> Garry L. Baker
>
> "There is no 'patch' for stupidity." - www.sqlsecurity.com
>
>
> On Thu, Aug 12, 2010 at 5:28 PM, Muzammil Malick <malickmuz_at_gmail.com
> >wrote:
>
> > Hi Guys
> >
> > Is there a way to use the pipe command to only show the first 2 lines
> > of "sh run" output
> >
> > e.g. sh run |
> >
> > If the pipe cannot be used is there any other way to do this?
> >
> > Thanks in advance
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Thu Aug 12 2010 - 11:37:07 ART

This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 11:20:52 ART