10 lines
256 B
Bash
10 lines
256 B
Bash
function is_pangram {
|
|
typeset alphabet=abcdefghijklmnopqrstuvwxyz
|
|
typeset -l string=$*
|
|
while [[ -n $string && -n $alphabet ]]; do
|
|
typeset ch=${string%%${string#?}}
|
|
string=${string#?}
|
|
alphabet=${alphabet/$ch}
|
|
done
|
|
[[ -z $alphabet ]]
|
|
}
|