Chat now with support
Chat with Support

Safeguard for Sudo 2.0 - Administrators Guide

One Identity Privileged Access Suite for Unix Introducing Privilege Manager for Unix Introducing Privilege Manager for Sudo Planning Deployment Installation and Configuration
Download Privilege Manager for Unix Software Packages Download Privilege Manager for Sudo Software Packages Quick Start and Evaluation Configure a Primary Policy Server Configure a Secondary Policy Server Install PM Agent or Sudo Plugin on a Remote Host Remove Configurations
Upgrading Privilege Manager 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 Unsupported Sudo Options Sudo Plugin Policy Evaluation About us

strindex

Syntax
int strindex( string str, string substr )
Description

strindex returns the numerical offset of a given string within another string. If the substr is not found, it returns -1.

Example
printf("%d\n",strindex("xxxfooxxx","foo"));

Returns: "3"

printf("%d\n",strindex("xxxfooxxx","bar"));

Returns: "-1"

Related Topics

strlen

strlen

Syntax
int strlen( string str )
Description

strlen returns the length of the string, str.

Example
printf("%d\n",strlen("foo"));

Returns: 3

Related Topics

strindex

strsub

Syntax
string strsub ( string str, int start, int length )
Description

strsub returns the substring of a given length starting at a given position in the string.

Example
printf("%s\n",strsub("xxxfooxxx",3,3))

Returns "foo".

printf(%s\n",strsub(xxxfooxxx",3,-1))

-1 returns the remainder of the string, "fooxxx".

subst

Syntax
string subst ( string str, string pattern, string replacement )
Description

subst substitutes part of a string with another string.

Example
print(subst("xxxonexxx","one","two"));

Returns: "xxxtwoxxx"

Related Documents