Last active
March 9, 2017 19:30
-
-
Save var-bin/a4bb05d66249c5eb67597d759217d820 to your computer and use it in GitHub Desktop.
while in bash, example. Repository https://github.com/var-bin/terminalForCoder__WSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# while.sh | |
again="yes" | |
while [ "$again" = "yes" ] | |
do | |
echo "Please enter a name:" | |
read name # !!! | |
echo "The name you entered is ${name}" | |
echo "Do you wish to continue? (yes/no)" | |
read again # !!! | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment