mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-10 18:55:03 -04:00
18 lines
No EOL
258 B
Bash
Executable file
18 lines
No EOL
258 B
Bash
Executable file
#!/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 |