The new docs.trellix.com offers a modernized UI and AI-powered features like conversational searches. Content is currently available only in English. Other languages will be available in mid-October 2026. We hope you enjoy the new experience.

iList command

Prev Next

The iList command sorts the values in the list in ascending order and removes duplicate values.

Note

Exploit Prevention is not supported in the ARM architecture.

Syntax

iList -d list
                  

Parameter

Parameter

Description

-d

Indicates that the list contains directory names and converts all directory characters to the proper format for the operating system.

Any duplicate separators are combined into one before the comparisons are done, any trailing directory characters are removed before the list is returned.

If an entry is a subdirectory of another element, only the parent directory is returned.

Example

set alist {{c:/tmp\\ } {c:\tmp\a} {c:\tmp/b/c} {d:\debug}}
set blist [iList -d $alist]

The "blist" list now contains:

{{c:\tmp} {d:\debug}}

For more Expert Rules examples, visit the Trellix Github repository.