Shell scripting is like a language, involving the environment, basic syntax, variable definitions, functions, parameters (System parameters), condition determination, execution Process control, and so on.
This article describes the following aspects:
- Operating environment: Shell Shebang Path
- Basic syntax: commands, variables, functions, parameters, conditions, Process control.
- Variable correlation: Definitions, command parameter variables, and system parameters read from the configuration file (-r cron.daily/sysstat script).
- Functions: Defining methods
- Condition determination and environmental testing:-x-d-F, etc.
- Execution Process Control: case, etc.
- String processing with advanced directives: (SED vs. awk)
---not completed.
Reference:
1. Conditions and conditions used in the shell test: http://www.cnblogs.com/ToDoToTry/p/4392180.html
2. Data transfer methods in the shell
3. The little Tricks of awk
4. How to use SED
How to write shell scripts