Thanks guys
I had never seen the linenum command!
On 12 August 2010 20:17, Nick Matthews <matthn_at_gmail.com> wrote:
> True, mistake on my part. I just get so excited around regular expressions.
>
> If you really wanted to nickpick it would look like:
> sh run linenum | include ( [1-5]?[0-9] : )
>
>
> -nick
>
> On Thu, Aug 12, 2010 at 11:57 AM, Ryan West <rwest_at_zyedge.com> wrote:
>>
>> 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 Fri Aug 13 2010 - 08:51:00 ART
This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 11:20:52 ART