Chat now with support
Chat with Support

Privilege Manager for Unix 6.1 Common Documents - Administration Guide

One Identity Privileged Access Suite for Unix Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager Variables Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures Privilege Manager programs Installation Packages


list range( list X, int begin, int end )

The range function returns a subset of the elements from list X. The subset of elements in the range specified by begin and end. Any value for end greater than the length of the list is the same as end.

trustedusers={"jamie", "cory", "robyn"}; 
a=range(trustedusers, 1, 2); 

The value of a is set to: {"cory", "robyn"}


list replace( list X, int start, int end [, string s1, ...])

The replace function deletes the elements between the start and end indices of the specified list and inserts the supplied strings in their place. If you do not specify any replacement string values, it replaces those elements with nothing; that is, it returns the list with the specified portion omitted.

trustedusers={"jamie", "cory", "robyn"}; 
a=replace(trustedusers, 1, 1, "sandy"); 
print(a); // prints "{jamie, sandy, robyn}" 


int search( list X, string pattern)

The search function returns the index of the first matching instance of pattern in the specified list. If there is no match, it returns -1.

NOTE: The first element in the list is index:0.


The following example prints the index number for "cory", which is 1:

a=search({"jamie","cory","robyn"},"c*"); print(a); 
Table 38: Search patterns

j followed by any number of characters.


j followed by any number of characters, ending with an e.


Upper or lower case j followed by any number of characters.


Any lower case character.


Any character except lower case characters.


j followed by a single character.


list split ( string X [, string delimiter] )

The split function is the opposite of join. It constructs a list by concatenating the strings into a list. It separates each element in the list with a delimiting character, which can be any character from the delimiter string. The default for delimiter is any white space character.

NOTE: A sequence of two or more contiguous delimiter characters in the parsed string is considered to be a single delimiter. Delimiter characters at the start or end of the string are ignored.


The following example returns the list: {"jamie", "cory", "robyn"}

a = split( "jamie, cory, robyn", ", ")
Related Topics


Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating