May 2017
Beginner
552 pages
28h 47m
English
Get the length of a variable's value with the following command:
length=${#var}
Consider this example:
$ var=12345678901234567890$
echo ${#var}
20
The length parameter is the number of characters in the string.