Tag:Shell script judgment statement
-
Judgment statement of shell script programming
1、 Single branch if statement Format: if judgment condition; then statement1 statement2 … fi 2、 Double branch if statement Format: if judgment condition; then statement1 statement2 … else statementN … fi Use a previously used script to illustrate this structure. 3、 Multi branch if statement Format: if judgment condition 1; then statement1 … Elif judgment […]