Created
September 28, 2021 10:35
-
-
Save psycalc/cde96281024fa37a1d1c6a4e241b26ba to your computer and use it in GitHub Desktop.
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 | |
if [ "$1" == "vasya" ]; then | |
echo "Privet $1" | |
elif [ "$1" == "jack" ]; then | |
echo "Hello $1" | |
else echo "Zdarova $1" | |
fi | |
x="" | |
while [ "$x" != "q" ] | |
do | |
read -p "Enter x:" x | |
echo "Starting CASE selection..." | |
case $x in | |
1) echo "This is one";; | |
[2-9]) echo "Two-Nine";; | |
"Petya") echo "this petya";; | |
*) echo "Parameter Unkown, sorry!";; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment