Log in
|
How to Buy
|
Contact Us
|
United States (Change)

## Choose Country

### North America

- United States

### Europe

- Deutschland - Germany
- España - Spain
- France
- Italia - Italy
- Россия - Russia
- United Kingdom

### Asia Pacific

- Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
- Australia
- 中国 - China
- India
- 日本 - Japan
- 대한민국 - Korea
- 台灣 - Taiwan

Remember my choice

# Technical Documentation

Download Software
Research a Problem
Case Management
Contract & Product Management
Technical Documentation
Documentation Archive
Enterprise MIBs
File Format Help
Glossary
Portable Libraries
End-of-Life Products
Contact Support
Guidelines and Policies
Security Resources
Rate and give feedback: Feedback Received. Thank You!
Rate and give feedback:
This document helped resolve my issue. Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:
E-mail:

## Related Documentation

- For a list of regular expressions, see Using Regular Expressions in the JunosE IP Services Configuration Guide

# Filtering show Commands

You have access to a variety of show commands that display router and protocol information. You can filter the output of a show command by specifying | (the UNIX pipe symbol), one of the following keywords, and either a case-sensitive text string or a regular expression.

- begin—Displays output beginning with the first line that contains the text string or regular expression
- include—Displays output lines that contain the text string or regular expression and excludes lines that do not contain the text string or regular expression
- exclude—Displays output lines that do not contain the text string or regular expression and excludes lines that do contain the text string or regular expression

You can press Ctrl+c to interrupt the show command output.

| Note: The router does not recognize beginning spaces of the text string. For example, if you enter the include option with IP as the text string on which to filter, the router ignores the space and displays lines that include words such as RIP.

Example

In the following example, the output display consists only of lines that contain the string ip. The router omits all other lines of the output from the display because none of them contain the string ip.

    host1#show config include-defaults | include ip
    ! Configuration script generated on FRI NOV 12 1999 16:56:41 UTC
    ip address 192.168.1.229 255.255.255.0
    ip rip receive version 2 1
    ip rip send version 1
    ip rip authentication mode md5 17
    ip rip authentication key
    ip route 10.6.0.0 255.255.0.0 192.168.1.1
    ip route 10.10.0.0 255.255.0.0 192.168.1.1
    ip route 10.10.0.166 255.255.255.255 192.168.1.1
    ip debounce-time 0
    router rip

## Related Documentation

- For a list of regular expressions, see Using Regular Expressions in the JunosE IP Services Configuration Guide

#### Published: 2011-04-07

Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2011 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out