Move under www to ease rsync
This commit is contained in:
16
www/eps/hpr2649/hpr2649_bash10_ex2.sh
Executable file
16
www/eps/hpr2649/hpr2649_bash10_ex2.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Demonstration of the 'case' command
|
||||
#
|
||||
for fruit in banana apple pear kiwi nectarine; do
|
||||
case $fruit in
|
||||
banana) echo "$fruit: don't eat the skin" ;;
|
||||
apple) echo "$fruit: eat the skin or not, as you please" ;;
|
||||
kiwi) echo "$fruit: most people remove the skin" ;;
|
||||
nectarine) echo "$fruit: leave the skin on and eat it" ;;
|
||||
*) echo "$fruit: not sure how to advise" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user