Cisco IOS "include" filter
crtplague
Member Posts: 13 ■□□□□□□□□□
in CCNA & CCENT
This might not exactly be related to Cisco exams directly, but, is there an option for the Cisco IOS "include" filter where I can enter more than one instance to look for on the same line?
For example, I'm trying to run the two lines below in a single command. egrep doesn't help me much on IOS.
# sh int switchport | include Name
# sh int switchport | include Access
Any help would be appreciated.
Thanks,
crtplague
For example, I'm trying to run the two lines below in a single command. egrep doesn't help me much on IOS.
# sh int switchport | include Name
# sh int switchport | include Access
Any help would be appreciated.
Thanks,
crtplague
Comments
-
Webmaster Admin Posts: 10,292 AdminIn your case you could simply do:
# sh int switchport | include Name|Access
(or use sh vl br, or sh int statu)
but also check out the following article:
Regular Expressions