RE: Limit output

From: Ryan West <rwest_at_zyedge.com>
Date: Thu, 12 Aug 2010 15:57:48 +0000

Nick,

> -----Original Message-----
> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On
> Behalf Of Nick Matthews
> Sent: Thursday, August 12, 2010 11:37 AM
>
> 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. : )
>

Not to nitpick too much, but the second example will show lines 50-59, if you want to show 1-59 I think you would need an ? statement.

sh run linenum | include ( [1-5]?. : )

-ryan

Blogs and organic groups at http://www.ccie.net
Received on Thu Aug 12 2010 - 15:57:48 ART

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