D:\JavaFrameworks\InsuranceFramework\src\java\unix_code\CaseStatement.properties
 1 # Case statement has the following syntax:
 2 case $variable_name             in
 3                         constant_1 )    statement;;
 4                         constant_2 )    statement_1    # 0 or more statements
 5                                         statement_2
 6                                          statement_3;;  # ";;" terminates the statement
 7                         * ) statement;;             # default case
 8 esac                             # end of case statement
 9 # reverse of the word "case" and "esac"
10 ========================================================
11 Example:
12 
13 read choice_2
14 case "$choice_2"
15     in
16         1 )    chmod "$permission""+r"  $tfile_name;;
17         1 )    chmod "$permission"" r"  $tfile_name
18                                    echo "\n this is the reverse of choice 1"
19                                    echo "\n can not find anything to do";;
20         2 )    chmod "$permission""+w"  $tfile_name;;
21         2 )    chmod "$permission"" w"  $tfile_name;;
22         3 )    chmod "$permission""+x"  $tfile_name;;
23         3 )    chmod "$permission"" x"  $tfile_name;;
24         * )    echo "\n no choice is picked";;
25     esac
26 
27