Special characters
Regardless of the mode in which the CLI is being used, characters that have a special meaning such as parentheses and quotation marks must be preceded by the escape character when they are used as literals. In the CLI, the escape character used to flag literals is the backslash (\). Table 1 lists the characters that require the escape character.
| Name | Character | Escape sequence |
|---|---|---|
| open parenthesis | ( | \( |
| close parenthesis | ) | \) |
| backslash | \ | \\ |
| single quote | ' | \' |
| double quote | " | \" |
| blank | (blank) | \(blank) |
For example, to create a role named admincom with
the description Communication administrator, issue the following
command to DNI_SECADM:
cre -ro admincom -desc Communication\ administrator Instead
of using an escape character before each blank, you can enclose a
parameter value that contains one or more blanks in single or double
quotation marks, for example: cre -ro admincom -desc "Communication administrator"Some services also use the backslash character as their escape
character for special characters. For example, the System Configuration
service (DNI_SYSADM) uses the percent (%) and underscore (_) characters
as wildcard characters. If you decide to use one of these special
characters as a literal in a command issued to DNI_SYSADM, you must
precede it with two backslash characters:
- One so that DNI_SYSADM recognizes the special character as a literal
- One so that the CLI recognizes the backslash that precedes the special character as a literal
cre -ct Test\\_CT