PreviousNext

attrlist modify

Removes and changes attributes and their values in an attribute list. The syntax is:

attrlist modify attrlist
{
[-add attribute_type attribute values]
[-change attribute_type attribute values]}
[-remove attribute_type attribute values]

Description
The attrlist modify operation returns an attribute list with attributes modified as specified by the -add, -remove and -change options. New attributes can be added, or new values added to existing attributes with -add. Entire attributes or attribute values can be removed with -remove. The -change option removes all values from an existing attribute and replaces them with new values specified.

Privileges Required
No special privileges are needed to use the attrlist modify command.

Examples

dcecp> attrlist modify{{a b} {c d}} -add {{c e}}
{a b} {c d e}
dcecp>

dcecp> attrlist modify {{a b} {c d e}} -remove {{c e}}
{a b} {c d}
dcecp>
dcecp> attrlist modify {{a b} {c d e}} -change {{c f}}
{a b} {c f}
dcecp>