Move under www to ease rsync
This commit is contained in:
18
www/eps/hpr2649/hpr2649_bash10_ex1.sh
Executable file
18
www/eps/hpr2649/hpr2649_bash10_ex1.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Demonstration of the 'if' command
|
||||
#
|
||||
for fruit in banana apple pear kiwi; do
|
||||
if [ "$fruit" == "banana" ]; then
|
||||
echo "$fruit: don't eat the skin"
|
||||
elif [ "$fruit" == "apple" ]; then
|
||||
echo "$fruit: eat the skin or not, as you please"
|
||||
elif [ "$fruit" == "kiwi" ]; then
|
||||
echo "$fruit: most people remove the skin"
|
||||
else
|
||||
echo "$fruit: not sure how to handle this"
|
||||
fi
|
||||
done
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user