duvel
23
Great, just what I need to learn from!
I hope everyone else here is a human.
Anyway, the script works now, as a finishing touch, is there a simple way to make it recognize upper and lower case?
Currently, I have just lower case:
alphabet=(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)
I tried alphabet=({a..z} {A..Z})
but this did not work.
I think the idea is correct, just the wrong syntax.
IsaacG
24
Works for me.
» alphabet=({a..z} {A..Z})
» echo "${#alphabet[@]}"
52
» echo "${alphabet[30]}"
E
But what are you doing with that? Are you only considering something to be a pangram if it has all 52 characters?
glennj
25
Since the alphabet array is lowercase, I would convert the input to lowercase.