Sunday, February 12, 2006

${#string} Getting the length of a string

$ WORD=Supercalifragilisticexpialidocious
$ echo $WORD
Supercalifragilisticexpialidocious
$ echo ${#WORD}
34

0 Comments:

Post a Comment

<< Home