is ist Possible, that i check the names in a until queue ?
b=1
read -p "Enter how much databases you want to install: " COUNTER
until [ ${a} -eq ${COUNTER} ]; do
a=$((a+1))
echo "What is the name for the $((b++)) database ?"
read name
if [ $name == "already there" ]; then
echo " Please, don't use the same name for a database!"
exit 1
else
:
fi
I want, that the script exit when the name is already there...
any ideas ?