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
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
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
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
Why shell programming?
In Linux, although there are a variety of graphical interface tools, ghost is still a very flexible tool. Shell is not only a collection of commands, but also a very good programming language. You can use shell to automate a
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
Create a scriptThere are many different shells in Linux, but usually we use Bash (Bourne again shell) for Shell programming because bash is free and easy to use. So the script I've provided in this article is all about using bash (but in most cases
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
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.