expr

Name

expr -- evaluate expressions

Description

The specification for "expr" is as specified in the SUS but with the some extra operands supported

Extra operands

match STRING REGEXP

same as STRING : REGEXP

substr STRING POS LENGTH

substring of STRING, POS counted from 1

index STRING CHARS

index in STRING where any CHARS is found, or 0

length STRING

length of STRING

quote STRING

interpret TOKEN as a string, even if it is a keyword like match or an operator like /