Bash manual and animal example added
This commit is contained in:
parent
ea029d79ca
commit
6e1cefb3ec
8
ChangeLog
Normal file
8
ChangeLog
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
||||||
|
|
||||||
|
* bash.pdf: BASH Manual added
|
||||||
|
|
||||||
|
* animal.sh: animal bash example
|
||||||
|
|
||||||
|
* hello.sh: hello world example
|
||||||
|
|
9
animal.sh
Normal file
9
animal.sh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
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 unknown number of";;
|
||||||
|
esac
|
||||||
|
echo " legs."
|
Loading…
Reference in New Issue
Block a user