I have a script and want to ask the user for some information, the script cannot continue until the user fills in this information. The following is my attempt at putting a
until passwd do echo "Try again" done
or
while ! passwd do echo "Try again" done