10 pipe, 10 pipe -8, Figure 3-14. execution result of – Hitachi GR2000 Series User Manual

Page 70: Figure 3-15. filtering sh

Advertising
background image

Hitachi Gigabit Router GR2000 Series Enhanced Version Operations - Device Management Overview

3-8

GR2K-GA-0015

Ver. 07-02

If character strings shown in the list of letters that can be used in the command
character conversion of the history are used, the history function executes the
command after having been converted into the last command character strings
executed before executing the command.

3.2.10

Pipe

The pipe function lets you pass the command execution result to another command.
By using the

grep

and

sort

commands, the command execution result can be made

more intelligible. Figure 3-14 shows the execution result of the

show sessions

command; Figure 3-15 shows the

show sessions

command execution result filtered by

grep

. Figure 3-16 shows the execution result of the

show ip interface

command; Figure

3-17 shows the

show ip interface

command execution result filtered by

sort

.

Figure 3-14 Execution Result of show sessions Command

Figure 3-15 Filtering show sessions Command Execution Result with grep Command

Table 3-2 List of Letters Used in Conversion of Command Character Strings of History

No.

Designation

Description

1

!!

Executes upon converting into the immediately preceding command.

2

!n

Executes upon converting into the command of the history number “n” (*).

3

!-n

Executes upon converting into the command performed “n” times before.

4

!str

Executes upon converting into the most recent command, starting with the
character string of “str”.

5

^str1^str2

Executes upon converting the command character string “str1” executed
immediately preceding “str2”.

*Note:

Means the arrangement number displayed by using the show history command.

*

Note: Depending on the software setting on the terminal, you may not be able to select the

command with arrow keys. If so, check the setup information in the software manuals.

> show sessions

operator console ----- 0 Jul 7 10:57:30

operator ttyp0 ----- 1 Jul 7 10:13:01 (192.168.3.7)

operator ttyp1 ----- 2 Jul 7 10:49:49 (192.168.3.7)

operator ttyp2 admin 3 Jul 7 11:06:41 (192.168.3.7)

>

> show sessions | grep admin

operator ttyp2 admin 3 Jul 7 11:06:41 (192.168.3.7)

>

Advertising