I. PrefaceShell programming is widely used in the Unix/linux world, and mastering shell programming is a must for a good unix/linux developer and system administrator. The main task of script debugging is to find out the cause of the script error
1. What is a shell script?It is a scripting language, not a programming language.You can use some logical judgments, loops, and other syntax.You can customize the sub-function, which is a collection of system commands.Shell scripts enable automated
Transferred from: http://itlab.idcquan.com/linux/SHELL/727128.htmlThis paper introduces the shell script debugging technology comprehensively and systematically, including using echo, tee, trap and other commands to output key information, tracking
I. Preface
Shell programming is widely used in the Unix/linux world, and mastering shell programming is a must for a good unix/linux developer and system administrator. The main task of script debugging is to find out the cause of the script error
Linux Shell Bash with special meaning exit code purpose descriptionThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat: Exit nExit. Set the exit code to N. (cause the
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
Original URL: http://zhu8337797.blog.163.com/blog/static/170617549201122512712136/
Command
Options
function
BASH–X Pin Name
Echo Echo
Displays each row of the script after the variable is replaced
[This is my own study notes, welcome reprint, but please specify the source:http://blog.csdn.net/jesson20121020]
Take a look at some of the variables in the shell today.
Variable Type:There are several variables in the shell:1) Local
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.