Quick little script to read the length of a string:
#!/bin/bash
echo "Enter some text"
read mytext
length=${#mytext}
echo $length
The post Quickly read the length of a string in bash appeared first on krypted.com.