03-30-2008 07:13 AM - edited 03-05-2019 10:03 PM
Hi
Can someone explain me when we use the |
and inc option in show command.
what is purpose of using the | and inc option
Solved! Go to Solution.
03-30-2008 07:22 AM
It is used to filter the output from the show command to only include the bit you type after the 'inc'. For example, if I have a large config, and I need to see all the 'ip route' commands only, the a 'show run | inc route' command will show all the ip route commands. It will also show any route map commands as these lines also include the same word. I usually find that the '| begin' is more useful, as it is easier to start at the right point. Both are useful when needed, but are most used when the config is large.
Hope that explians it a little. Just get used to using it and you will discover how useful it can be.
03-30-2008 07:22 AM
It is used to filter the output from the show command to only include the bit you type after the 'inc'. For example, if I have a large config, and I need to see all the 'ip route' commands only, the a 'show run | inc route' command will show all the ip route commands. It will also show any route map commands as these lines also include the same word. I usually find that the '| begin' is more useful, as it is easier to start at the right point. Both are useful when needed, but are most used when the config is large.
Hope that explians it a little. Just get used to using it and you will discover how useful it can be.
03-30-2008 08:19 AM
Hi
thanks for your reply
it worked for me now
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: