Bash manual and animal example added
This commit is contained in:
parent
ea029d79ca
commit
6e1cefb3ec
3 changed files with 17 additions and 0 deletions
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."
|
BIN
bash.pdf
Normal file
BIN
bash.pdf
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue