
2.4
Glob-Style Pattern
Command Line Interface Reference InForm OS Version 2.2.4
2.3 Glob-Style Pattern
Several of the commands in this reference allow a pattern to be specified to refine the output
of the commands. The patterns are used to match against a string. Strings are typically names
such as host or virtual volume names. For example, in the
showhost
host_name|pattern...
command, a pattern can be specified to refine the command
output for a string of host names matching the specified pattern.
The
pattern specifier, as used in the CLI commands, is specified in the form of a glob-style
pattern. Glob-style matching in the CLI is implemented by Tcl. A glob-style pattern consists of
the symbols in the following table.
Symbol Explanation of Action
* Matches any sequence of characters in a string, including a null
string.
? Matches any single character in a string.
[chars] Matches any character in the set given by chars. A range of chars
can be specified using a dash (–). For example, [a–z] represents all
the ASCII characters from a through z.
\x Matches the single character x.
Comentários a estes Manuais