readded udpated scripts directory
This commit is contained in:
parent
cd053a412a
commit
f3117c81d9
84 changed files with 3210 additions and 0 deletions
11
scripts/case_example.sh
Executable file
11
scripts/case_example.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo -n "Enter the name of an animal: "
|
||||
read ANIMAL
|
||||
echo -n "The $ANIMAL has "
|
||||
case $ANIMAL in
|
||||
horse | dog | cat) echo -n "four";;
|
||||
man | kangaroo ) echo -n "two";;
|
||||
*) echo -n "an unkonwn number of";;
|
||||
esac
|
||||
echo " legs."
|
||||
Loading…
Add table
Add a link
Reference in a new issue