Character validation in shell script?

scmuser created the topic: character validation in shell script?
Write shell code to accept a string from the terminal, and echo a suitable message if it does not have at least 10 characters using (i) case (ii) expr.