get length of the string

by Ramya 2011-09-06 12:41:42

To get length of the string in shell script:


str="hscripts"
echo ${#str}


o/p will be:
8

Tagged in:

1093
like
0
dislike
0
mail
flag

You must LOGIN to add comments