The shell can recognize 4 different types of caret symbols: single quote character ' double quote character ' backslash character \ Inverted quote character '
1. Single quotation mark (')
# grep Susan Phonebook
Susan Goldberg 403-212-4921
Susan
1. Single quotation mark (')
# grep Susan Phonebook
Susan Goldberg 403-212-4921
Susan Topple 212-234-2343
If we're looking for Susan Goldberg and can't use the grep Susan Goldberg Phonebook command directly, grep treats Goldberg and phonebook as
# Well No. (comments)#管理员 $ ordinary User
In the script
#!/bin/bash #!/bin/sh
Typically appear in the first line of the shell script, meaning to use/bin/bash to execute the current shell script, except for the first line, which plays the role of
Command lineWhen users log on to the Linux system, they can see a shell prompt that identifies the start of the command line. The user can enter any commands and parameters after the prompt. For example: $ date 211 01:34:58 CST 1999 $
It is customary to use the Linux command line to manage Linux systems, for example:
Copy Code code as follows:
$ date
211 01:34:58 CST 1999
$
When the user logs in, it actually goes into the shell, and it follows a certain
The quickest way to learn to write script is to watch someone else's script file. However, although this method is practical, it is often "less effective" or even halfway to the shell's basic cognitive deficit. The first problem is that you don't
The case statement is suitable for applications that require multiple branching. The case Branch statement is formatted as follows: Case $ variable name inMode 1)Command sequence 1;;Mode 2)Command Sequence 2 ;;*)Sequence of commands executed
Source: http://blog.sina.com.cn/s/blog_62a151be0100x9rn.htmlFourth chapter basic Skills-Special symbolsThe quickest way to learn to write script is to watch someone else's script file. However, although this method is practical, it is often "less
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.