#!/bin/bash
#
# script to test case statement
#
action="update"
case $action in
"update")
echo "update the db"
;;
"select")
echo "select from db"
;;
"delete")
echo "delete from db"
;;
*)
echo "no action"
;;
esac
#
# script to test case statement
#
action="update"
case $action in
"update")
echo "update the db"
;;
"select")
echo "select from db"
;;
"delete")
echo "delete from db"
;;
*)
echo "no action"
;;
esac