Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail

The most common ways to use the pipe (|) symbol is to constrain the output
using match, except, find, or last:

  • ✓ | match: Specifies exactly what you want to display:
    [email protected] > show configuration | match at-
    2/1/0 {
    at-2/1/1 {
    at-2/2/0 {
    at-5/2/0 {
    at-5/3/0 {
  • ✓ | except: Displays output that ignores a specific string:

    [email protected]> show system users | except root
    8:28PM up 1 day, 13:59, 2 users, load averages:
    0.01, 0.01, 0.00
    USER TTY FROM [email protected] IDLE WHAT
    wiley.netnik 7:25PM - cli
  • ✓ | find: Displays output starting at the first occurrence of the matching
    text:

    [email protected]> show ethernet-switching interfaces detail | find “Index: 80”
    Interface: ge-0/0/16.0 Index: 80
  • ✓ | last: Displays only the last screen of the listing:

    [email protected]> show ethernet-switching interfaces detail | last
    Interface: ge-0/0/16.0 Index: 80

Leave a Reply

Your email address will not be published.