Essaye quelque chose du genre:
machaine="azerty" ;echo $machaine |grep '^[[:alnum:]]*$' >/dev/null ; echo $?
La variable de retour $? contient
man grep
<snip>
DIAGNOSTICS
Normally, exit status is 0 if matches were found, and 1 if no matches were found. (The -v option inverts the sense of the exit status.) Exit status is 2 if there were syntax errors in the pattern, inaccessible input files, or other system errors.
</snip>
Johan
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.