cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
947
Views
5
Helpful
6
Replies

In a IOS command line, how can I filter the result of "?"?

 

In a IOS command line, I can use the "include" command to filter piped results.

PC1#show running-config | include inter
interface FastEthernet0/0
interface FastEthernet0/1
interface FastEthernet1/0
interface FastEthernet1/1
PC1#

How can I , or is it possible, to filter the result of the helping information get from "?"? I tried to type the question mark with ctrl+v ? but it doesn't work.

PC1#show ? | include con
         ^
% Invalid input detected at '^' marker.

PC1#

 

 

 

1 Accepted Solution

Accepted Solutions

Cisco use (Coding methodology) what is the best used, it all depends on how they write core on C or whatever language they incorporate as IOS.

In Linux, you have many possibilities for what you looking for since that is a full OS

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

6 Replies 6

balaji.bandi
Hall of Fame
Hall of Fame
PC1#show ? | include con

not sure what you trying to achieve, are you looking to show command get output only have con?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

When I type "show ?", I get the following result:

R1#show ?
  aaa                       Show AAA values
  aal2                      Show commands for AAL2
  access-expression         List access expression
  access-lists              List access lists
  acircuit                  Access circuit info
  ...
R1#show

How can I filter this result and get only the lines that include "con"?

 

 

 

Hello!

You can invoke the context-sensitive help partway through a phrase to obtain a list of commands matching that phrase. For example:

 

R1# show con?
  console
  confirm
  ...

I hope this helps - thank you!

-Christopher

 

why not use simple show con? will give you more granular output.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I know I can use "show con?". I'm just discussing the possibility of filtering the result of "show ?". Is it possible to filter the result of "show con?"?

Cisco use (Coding methodology) what is the best used, it all depends on how they write core on C or whatever language they incorporate as IOS.

In Linux, you have many possibilities for what you looking for since that is a full OS

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card