Reprint: http://blog.chinaunix.net/uid-26854432-id-3181585.html #if语句
#if语句会计算它后面的表达式, and checks the result of the expression, if the result is true (true), the subsequent statement is compiled, and if False (false), the subsequent statement is
In the shell of Linux
The IF statement determines which branch to execute through the relational operator to determine the true or false of an expression. The Shell has three kinds of if ... else statements:
If ... fi statement;
if ... else .
Original articles, reproduced please indicate the source, thank you.Author: Qing Lin, blog name: Flying Air and static crossing
#if语句
#if语句会计算它后面的表达式, and checks the result of the expression, if the result is true (true), the subsequent statement
Basic shell syntax and shell syntax
I. Variables
1. Naming rules for variables: The name should start with a letter or underline followed by numbers, letters or underscores. It is best not to name it casually, so that you can see the variable name
[Reference the help document of smart appliance control technology. Here we have a very html version, which is very useful for querying, but it cannot be downloaded to CHM version. It cannot be used locally .]
1. # operator not followed by macro
In fact, python is a real dynamic language. The variable name in the Code is not "declared" or "defined, the language itself does not provide any special syntax for declaring or defining variables (except global ). For programmers, This is a benefit
Use python to design HTML-Based C language syntax to highlight the display program1st-school year semesterCompilation and translation principleCourse schedule reportClass 02 (II)Student ID 19Name: Liu XiaomingScoreInstructor Lu chaohuiI.
I. Basic Shell syntax1. VariablesBy convention, Shell variables are composed of uppercase letters and underscores (_). There are two types of Shell variables:Environment VariableEnvironment variables can be transmitted from the parent process to the
Directory one, what is shell script two, variable three, operator four, flow control five, function first, what is shell scriptStacking OS commands into executables, executing the OS commands in the text from top to bottom, is scripting, and with
Android OTA update package creation script (1. Parameter Parsing)
Preface:
"Build/tools/releasetools/ota_from_target_files-u lk. bin-n target.zip update.zip" is the command for creating the entire package. Obviously, lk upgrade is supported here.
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.