Linux commands (11)--shell Programming II (Circular control statements)

Source: Internet
Author: User
Tags arithmetic logical operators

1.if statements

(1) If statement of two-way branch

(2) If statement of the multi-path conditional Judgment Branch

2. Test statements

(1) file test

(2) String test

(3) Numerical test

(4) Test statements combined with logical operators

3.case statements

4.for Loop statement

(1) [argument-list] is a variable value table

(2) [Argument-list] is a file expression

(3) [Argument-list] is empty

5.while statements

6.until statements

7.break and Continue statements

(1) Break statement

(2) Continue statement

8. Arithmetic expressions and Exit script commands

(1) Arithmetic expressions

(2) Exit script command

9. Custom Functions

Because we have not learned this piece of content, first outline, study after the detailed explanation and supplement.

Linux commands (11)--shell Programming II (Circular control statements)

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.