Regarding syntax

Hi All,

What does this mean

${#var}

It gives the length of the variable $var, have a read of a scripting tutorial:

http://www.unix.com/answers-frequently-asked-questions/13774-unix-tutorials-programming-tutorials-shell-scripting-tutorials.html

Regards

Fill var with life and try it out..

var=abcd
echo ${#var}
4