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:
    wiley@netnik > 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:

    wiley@netnik> 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 LOGIN@ IDLE WHAT
    wiley.netnik 7:25PM - cli
  • ✓ | find: Displays output starting at the first occurrence of the matching
    text:

    wiley@netnik> 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:

    wiley@netnik> show ethernet-switching interfaces detail | last
    Interface: ge-0/0/16.0 Index: 80