some sytem scripts

This commit is contained in:
Marina Wahl 2014-07-05 18:22:01 -04:00
parent 4b0a965e4a
commit 5852171b21
25 changed files with 639 additions and 1 deletions

View file

@ -0,0 +1,18 @@
#!/bin/sh
# script to test case statement
if [ -z $1 ]
then
r="*** unknown ***"
elif [ -n $1 ]
then
r=$1
fi
case $r in
"car") echo "car rental";;
"van") echo "van rental";;
"jeep") echo "jeep rental";;
*) echo "Sorry I have no $r !";;
esac