title: How to scan a string for its contents to see whether it contains uppercase or lowercase characters
body: <p>Hello I am trying to make a password generator that scans a string to see whether it contains uppercase or lowercase characters. The contents of the string are generated using a bank of characters to use</p>
  
  <pre><code>char=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V X W Y Z)
  
     #chars=(~ ! @ # $ % ^ &amp; * - +)                                     
  ####rand2=$random % 11
  
  
     max=${#char[*]}    for i in `seq 1 $pwdlen`
        do
             let "rand=$RANDOM % $max"
                    str="${str}${char[$rand]}"
        done    echo $str    exit 0 fi str=$1 len=${#str}
  
  if [ $len -lt 8 ] then
          echo $str is too short fi if [ $len -gt 16 ] then
          echo $str is too long fi
  </code></pre>