The Linux shell has learned several times.
But the memory is not good, always forget, chase the main reason may be not common reason!
Case beginning Esac End
Here's the result.
Input method does not enter the symbol is wrong, the beginning of the total error, and then switched the input method is good
Read
The read command reads the value of a variable from the keyboard and is typically used in a shell script to interact with the user. The command can read the values of multiple variables at once, and the variables and input values need to be separated by spaces. After the read command, if no variable name is specified, the read data is automatically assigned to the specific variable reply
-P: Specifies the prompt to read the value;
-T: Specifies the time to wait (in seconds) to read the value.
Finish!
Shell Process Control statement case