beautypg.com

Replacing the last command string – FUJITSU XG Series P3NK-4452-01ENZD User Manual

Page 50

background image

XG Series User's Guide

Chapter 2 Using the CLI

Using the CLI

50

Replacing the last command string

By entering a replacement specifier (^), replacement target string, and replacement string at the beginning of a command
string, you can re-execute the last command with the specified string replaced with a new string.

If no replacement string is specified, the target string will be deleted.

The table below lists specifiers and operations. (A: replacement target string, B: replacement string, C: additional string)

A command execution example is shown below.

z

Command

Command

Operation

^A^B^

Replace A with B and execute the command string.

^A^B^:p

Replace A with B and display the command string.

^A^B^C

Replace A with B, add C to the command string, and execute it.

^A^B^:pC

Replace A with B, add C to the command string, and display it.

^A^^

Delete A and execute the command string.

^A^^:p

Delete A and display the command string.

^A^^C

Delete A, add C to the command string, and execute it.

^A^^:pC

Delete A, add C to the command string, and display it.

# show running-config lan 0 ip address
(Display the IP address for lan 0.)

# ^addr^rout^:p

(Replace addr with rout and display the command string.)

show running-config lan 0 ip routess

# ^ess^e^

(replace ess with e and execute the command string.)

show running-config lan 0 ip route

(Display the command and execute it.)

(Display the static route information for lan 0.)