beautypg.com

Controlling “show” command output – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 61

background image

Getting Started

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

1.37

Controlling “show” Command Output

You can control the output of show commands by using the | and > or >> tokens in the
following ways:

To display only part of the output, follow the command with | and then other
keywords (see Output Modifiers below)

To save the output to a file, follow the command with > filename

To append the output to an existing file, follow the command with >> filename

Using the ? after typing the show command displays the following information about
these tokens:

Output Modifiers

Type the | (vertical bar) to use Output modifiers.

Begin

The begin parameter causes the display to begin at the first line that contains the input
string.

awplus#

show users

| Output modifiers

> Output redirection

>> Output redirection (append)

append Append output
begin Begin with the first line that contains
matching output
exclude Exclude lines that contain matching output
include Include lines that contain matching output
redirect Redirect output

awplus#

show run | begin vlan1

...skipping
interface vlan1
ip address 192.168.14.1
!!
line con 0
login
line vty 0 4
login
!
end