[c-nsp] regex for logical and

Stig Johansen stig.johansen at ementor.no
Fri Aug 15 12:15:44 EDT 2008


Try "sh ip cache flow | inc AT3/0.1405.*163.65.47.29"

The ".*" part matches anything in between like this:
. matches any single character
* extends the previous expression to "zero or more times"
So, you are saying "match any single character, zero or more times"

Take a look at http://www.cisco.com/en/US/docs/ios/termserv/configuration/guide/tsv_reg_express.html for some more information.

Best regards,
Stig Meireles Johansen

-----Opprinnelig melding-----
Fra: cisco-nsp-bounces at puck.nether.net [mailto:cisco-nsp-bounces at puck.nether.net] På vegne av james edwards
Sendt: 15. august 2008 17:52
Til: cisco-nsp at puck.nether.net
Emne: [c-nsp] regex for logical and

I want to match AT3/0.1405 AND 163.65.47.29 from my flow table but am not
hitting the right expression.

ie i want to match lines that contain both  AT3/0.1405 and 163.65.47.29.

CORE_Router#sho ip cache flow | in AT3/0.1405  163.65.47.29

-- 
James H. Edwards
Senior Network Systems Administrator
Judicial Information Division
jedwards at nmcourts.gov
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


More information about the cisco-nsp mailing list