Chapter 10 Install and System Administration for FortiOS 5.0 : Using the CLI : Tips : Adding and removing options from lists
  
Adding and removing options from lists
When adding options to a list, such as a user group, using the set command will remove the previous configuration. For example. if you wish to add user D to a user group that already contains members A, B, and C, the command would need to be set member A B C D. If only set member D was used, then all former members would be removed from the group.
However, there are additional commands which can be used instead of set for changing options in a list.
Table 64: Additional commands for lists
append
Add an option to an existing list.
For example, append member would add user D to a user group while all previous group members are retained
select
Clear all options except for those specified.
For example, if a group contains members A, B, C, and D and you remove all users except for B, use the command select member B.
unselect
Remove an option from an existing list.
For example, unselect member A would remove member A from a group will all previous group members are retained.
See Also
Help
Shortcuts and key commands
Environment variables
Special characters
Using grep to filter get and show command output
Language support and regular expressions
Screen paging
Baud rate
Using Perl regular expressions
Connecting to the CLI
Command syntax
Sub-commands
Tips