
Syntax/Description
Command
The
for
loop executes a sequence of commands for each member in
a list of items. If
in WORDS ...;
is not present, then
in "$@"
is
assumed. For each element in
WORDS
,
NAME
is set to that element,
and the
COMMANDS
are executed.
function NAME { COMMANDS ; }
function NAME () { COMMANDS ; }
function
Create a simple command invoked by
NAME
which runs
COMMANDS
.
Arguments on the command line along with
NAME
are passed to the
function as
$0
..
$n
.
getopts OPTSTRING NAME [arg]
getopts
Getopts is used by shell procedures to parse positional parameters.
hash [-lr] [-p PATHNAME] [-dt] [NAME...]
hash
For each
NAME
, the full pathname of the command is determined and
remembered. If the
-p
option is supplied,
PATHNAME
is used as the
full pathname of
NAME
, and no path search is performed. The
-r
option
causes the shell to forget all remembered locations. The
-d
option
causes the shell to forget the remembered location of each
NAME
. If
the
-t
option is supplied the full pathname to which each
NAME
cor-
responds is printed. If multiple
NAME
arguments are supplied with
-t
,
the
NAME
is printed before the hashed full pathname. The
-l
option
causes output to be displayed in a format that may be reused as input.
If no arguments are given, information about remembered commands
is displayed.
history [-c] [-d OFFSET] [n]
history -ps arg [arg...]
history -awrm [filename]
history
Display the history list with line numbers. Lines listed with with a
*
have been modified. Argument of
N
says to list only the last
N
lines.
The
-c
option causes the history list to be cleared by deleting all of
Cluster Management Tools
179
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......