how to check the length of a variable in ksh?

From: Clifton, Pablo (Pablo.Clifton@BCBSFL.COM)
Date: Thu Nov 21 2002 - 12:01:44 EST


Hi-

Anyone know how I can check in a korn shell script:

        if [[ length of variable $i is > 5 characters ]]
        then
                do something
        fi

thanks,
-pablo

--
Pablo Clifton
UNIX Tech Services
Blue Cross Blue Shield of Florida, Inc., and its subsidiary and
affiliate companies are not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc.


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:22 EDT