The command xxx is executed and the output is filtered to only show lines containing the "string" match and not containing the "string2" match. All other non-matching lines in the output are suppressed. If a line of output contains both the include and exclude strings then the line is not displayed.
Example: The following shows an example of the CLI command.
(Routing) #show running-config | include “spanning-tree” exclude “configuration” spanning-tree bpduguard spanning-tree bpdufilter default