In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Cloud computing tutorials for good programmers share syntax parsing of if nesting functions
Use the following two judgment syntax to judge the number 18, respectively, for the divisible result of 2 and 3.
Multi-condition judgment
If [test condition 1]; then
Statement executed when test condition 1 is met
Elif [test condition 2]; then
Statement executed when test condition 2 is met
Elif [test condition 3]; then
Statement executed when test condition 3 is met
Else
The statement executed when the test condition is False
Fi
Parsing of if nested syntax
If [test condition 1]; then
If [test condition 2]; then
The statement is output only when both condition 1 and condition 2 are met.
Fi
Fi
Memorization of No.3 Special symbols
The name of the execution of the $0 script
$* all parameters of this script. This option can have more than 9 parameters.
$# the number of parameters in this script
The ID number of the current process that the $script is running
$! The process ID number of the last process running in the background
The nth parameter value of the script, natively 1... 9, position variable
$? The return value of executing the previous instruction (displays the exit status of the last command. 0 means there is no error, and any other value indicates an error)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.