How to interpret quotation marks in Unix Shell
Shell can recognize four different types of leading characters: single quotes character 'double quotation marks character "backslash character \ backquotes character '1. Single quotes ('')
Howard @ 0
1. Single quotes ('')
# Grep Susan phonebookSusan Goldberg 403-212-4921Susan Topple 212-234-2343If we want to search for Susan Goldberg, we cannot directly use the grep Susan Goldberg phonebook command. grep regards Goldberg and phonebook as files
Reference symbols protect special metacharacters and parameter extensions in the parser using 3 ways: backslash (\), single quotation mark ('), double quotation mark ("").Single and double quotes must be matched to protect special metacharacters and
Reference symbols protect special metacharacters and parameter extensions in the parser using 3 ways: backslash (\), single quotation mark ('), double quotation mark ("").Single and double quotes must be matched to protect special metacharacters and
1) Unix command:
Although any Unix command can be used in shell scripts, some more common commands are used. These commands are usually used for file and text operations.
Common command syntax and functions:
Echo"Some text": print the text on
Special characters in the Shell have
1, $ dollar character2, reverse Slash3, ' inverted quotation mark4, "double quotes5, ;,*,?, [,]
Let me make a list of the following
One, $ symbol
1, echo $? The previous instruction exit status is displayed2,
Shell is the interface between the user and the Linux operating system. There are multiple shells in Linux, where Bash is used by default. This chapter describes how shell works, shell types, General Shell operations, and bash features. Shell is the
There are multiple shells in Linux, where Bash is used by default. This chapter describes how shell works, shell types, General Shell operations, and bash features. Shell is the interface between the user and the Linux operating system. There are
Fundamentals of Shell ScriptingWriting specifications for 1.shell scripts2 variable and special variable application3 Local variables and global variables4 Test-judgment expressionIn some complex Linux maintenance efforts, a large number of
Often see the author of the Linux software in the introduction of the installation software, in front of the command with a backslash, do not understand the meaning of the data later to know that this is to cancel the call of the alias, using the
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.