Shell Process Control statement case

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.