1 #!/bin/bash 2 3 echo "Enter password:" 4 read password 5 6 while [ "$password" != "123" ]; 7 do 8 echo "Sorry, try again." 9 read password 10 done 11 exit 0