https://www.zhihu.com/question/21418449Mort | Zsh vs. Bash: Incomplete contrast resolution (1) 2014-10-07BdpqlxzWhat's the difference between zsh and bash?A lot of people have written about "why zsh is better than bash", "Why zsh is better than
Read Catalogue
First, everything is a string
Two, references and metacharacters
Three, where does the string come from, where to go
Four, plus a little bit of definition, you can push to export the entire Bash scripting language
Here's what bash is about, including Bash's color code, Bash's four-class files, how variables are handled in bash, array variables, the shell's procedural programming language, and some simple scripting examples.One, bash color display rules (color
Bash Shell and bashshellI,Terminal Printing
[Root @ cai ~] # Echo welcome to bash!
Welcome to bash!
[Cairui @ cai ~] $ Echo 'Welcome to bash! '
Welcome to bash!
[Cairui @ cai ~] $ Echo "welcome to bash \! "
Welcome to bash \!
(Note: special
Xi. functionsThe shell function is defined by the description of the shell grammar above and holds a series of commands waiting to be executed later. When the shell function name is used as a simple command name, a series of commands associated with
Summary of important Linux Knowledge & mdash; understand and learn about bash hardware, kernel, and shell. we must use shell to communicate the input commands with the kernel, so that the kernel can control the hardware to work correctly. The
An array is a data structure that can be used to design algorithms more efficiently and easily for bash programming, which is described in detail in this chapter in the sections on arrays and strings.Array array definitionAn array is a contiguous
Linux system learning notes: BASH programming uses var (elementelement...) to create array variables. When referencing elements in an array, use $ {var [I]}, I as the subscript, subscript @ to copy the original array, and subscript * to copy the
1. debugging
1. Set options
(1) bash-N scriptname does not actually run the script, but only checks the syntax error of the specimen,
You can also add set-N or set-O noexec to the script.
(2) bash-V scriptname prints the content of this
Directory
Part 1. Warm up
Why use shell programming?
Start with a sha-bang (Sha-bang refers #!)
Call a script
Preliminary exercises
Part 2. Basics
Special characters
Introduction to variables and parameters
Variable
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.