BASH - Strings - Get Length of a String
var
=
"abc de"
echo
${#var}
returns:
6
NOTE:
The returned length includes any spaces.