Entering Special Characters

To enter special characters as part of a command, you may have to enclose the value in quotes, or precede the character with backslashes as an escape, or both.

  • Enclose values containing spaces in quotes, such as --NAME="Special Collection".

  • To use the percent (%) and underscore (_) wildcard characters as literals for key patterns in operations such as createAll and deleteAll, escape the character with two backslashes, such as --NAME=web\\_source for an object named web_source. In single job mode, also enclose the values containing these characters in quotes, such as --NAME="web\\_source". Otherwise, the underscore matches any single character.

  • When using the short form for arguments, escape literal values starting with a dash with two backslashes in single job mode, such as -n \\-mysource. In session mode, enclose the values in quotes or escape the dash with one backslash. For example, -n \-mysource or -n "-mysource". Alternatively, use the long form for arguments, such as --NAME=-mysource.

See "Command Interface" for a discussion of session mode and single job mode.