[c-nsp] can I use | pipe line such as "| inc xxx" and regexp such as "regexp ^$" both , when I execute "show bgp "

Peter Rathlev peter at rathlev.dk
Thu Sep 23 11:33:33 EDT 2010


On Thu, 2010-09-23 at 20:57 +0800, Hello.Cisco wrote:
> can I  use | pipe line such as "| inc xxx" and regexp such as "regexp ^$"
>  both ,when I execute "show bgp "  in crs-1

I don't know about the CRS-1, but in regular IOS you can. You have to
use the "quote-regexp" command though:

 show ip bgp quote-regexp "_65412$" | include ^r

Without the "quote-regexp" version, the CLI is unable to see when the
regular expression stops, and considers the pipe a part of it.

-- 
Peter




More information about the cisco-nsp mailing list