Include | exclude | begin: Search features

From: David Porta (David.Porta003@msd.govt.nz)
Date: Thu Oct 23 2003 - 00:47:19 GMT-3


Hello group,

I have done some research and could not find an answer. I am curious if
some one knows of a method to manipulate the include, exclude and begin
search features in such a way that would allow you to obtain the exact
output you are looking for.

Let me give you an example:
You want to see what interfaces on your running config are configured
with portfast. Therefore you could do:
3550# show run | include Fast|portfast

This will give you the following output:

interface FastEthernet1/1
 spanning-tree portfast
interface FastEthernet1/2
 spanning-tree portfast
interface FastEthernet1/3
interface FastEthernet1/4
interface FastEthernet1/5
interface FastEthernet1/6
interface FastEthernet1/7 ...

However the output represents a logical OR operation, instead of a
logical AND.

Does anyone know a way to perform a search using a logical AND instead
of a logical OR, in order to obtain a more precise output?

Cheers,
_________________________________
David Porta
Ministry of Social Development
Network Operations
+64..04.916.3222

 -------------------------------
 This email message and any attachment(s) is intended only for the
 person(s) or entity(entities) to whom it is addressed. The
 information it contains may be classified as IN CONFIDENCE and may be
 legally privileged. If you are not the intended recipient any use,
 disclosure or copying of the message or attachment(s) is strictly
 prohibited. If you have received this message in error please
 notify us immediately and destroy it and any attachment(s).
 Thank you. The Ministry of Social Development accepts no
 responsibility for changes made to this message or to any
 attachment(s) after transmission from the Ministry.
 -------------------------------



This archive was generated by hypermail 2.1.4 : Mon Nov 24 2003 - 07:53:07 GMT-3