Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


10.3.6 getStrLen (gets the number of characters of character string)

Syntax

getStrLen  character-string

Description

This command outputs the number of characters of the character string that is specified for argument. A line break included in the character string is interpreted as a single character.

Arguments

character-string

This command specifies the character string from which the number of characters is obtained.

Output to the standard output

Character string indicating the number of characters.

Return codes

Return code

Meaning

0

Normal termination

Not less than 1

Termination with an error

Examples

getStrLen abcdefg     # "7" is output.