I found this kind of script here but it's not working , why ?
while true
do
echo "which number ?"
read number
if [[ $number =~ ^[A-Za-z_]+$ ]]; then
echo "no letters!"
else
break
fi
done
echo "good!"
I get the following :
./A.sh: 7: ./A.sh: [[: not found
thanks for help !