The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated 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.