this will check if the lenght is between 6 and 11
((${#PASS} >= 6)) && ((${#PASS} <= 11))
this will check if you have at least one lowecase letter
[[ $VAR == *[a-z]* ]]
this will check if you have at least one uppercase letter
[[ $VAR == *[A-Z]* ]]
this will check if you have at least one number
[[ $VAR == *[1-9]* ]]
this will check if you have a letter at the end, either upper or lowercase
[[ $VAR == *[a-zA-Z] ]]
I am not sure(yet) how to determine if all of the chartacters are iether numbers, or letters, no special character. Example $%&^.
I will let you know what I figure out :-)