wo way to get length of the string.
The simplest one is ${#varname}, which returns the length of the ... us, they have a convenient mnemonic. The # key is on the left side of the $ key on the keyboard and operates from the left. The % key is on the right of the $ key and operated from the righ
Bash permits integer operations and comparisons on variables
#+ whose value consists of all-integer ... Chazelas points out,
# if [ $string1 ] has one argument, "]"
# if [ "$string1" ] has two ar