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 files to search for
# grep ' Susan Gold ' phonebook
Susan Goldberg 403-212-4921
When the shell encounters the first single quotation mark, it ignores all the special characters that are followed up to the closing quotation mark.
2. Double quotation m
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 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 files to search for
# grep ' Susan Gold ' phonebook
Susan Goldberg 403-212-4921
When the shel
There are three types of quotes in the shell: single quotes, double quotes, and anti-quotes. The single quotation mark ' character nonalphanumeric, enclosed by single quotes, appears as a normal character. When special characters are enclosed in single
1. Single quotation mark (')grep403-212-4921212-234-2343If we're looking for Susan Goldberg and can't use the grep Susan Goldberg Phonebook command directly, GREP will treat Goldberg and phonebook as files that need to be searchedgrep ' Susan Gold ' 403-212-4921When the shell encounters the first single quotation mark, it ignores any special characters that fall behind until the closing quotation mark2. Double quotation marks ("")Double quotation marks are similar to single
First of all, three single and double quotes in Python are not real annotations>>> type ("" "abcde" "")class'str' >>>> type ('abcd')class' Str '>This allows you to see three pairs of single, double quotes that have a data typeThree pairs of single, double quotes are defined when multiple lines of string can be defined"" "" "print (a) ABCD A pair of single, doubl
=start=Search keywords:Golang Single QuotesGolang Double QuotesGolang Back QuotesReference results:The conclusion is written in the first: in the go language is not inclined to use single quotation marks to represent strings, use double quotation marks or anti-quotation marks as needed.
A go language string is a constant sequence of arbitrary bytes. The string type of the go language is inherently different from the string type of other languages. Java's string, C + + std::string, and Pyth
[Reprinted] differences between single quotes, double quotes, and anti-quotes in linux shell, linuxshell
Linux shell can recognize four different types of leading characters: single quotes character 'double quotation marks character "backslash character \ backquotes character'1. Single
One, single and double quotation marksFirst, both single and double quotes are meant to solve the problem of having spaces in the middle.Because the space in Linux as a very typical delimiter, such as String1=this is astring, so execution will be error. To avoid this problem, single and double quotes are generated. The difference is that single quotes deprive the
The string type of the go language is string inherently different from the string types in other languages:
Java string, C + + std::string, and Python3 str type are all just fixed-width character sequences
The go language string is a UTF-8-encoded, variable-width sequence of characters, each of which is represented by one or more bytes
That is: A Go language string is a constant sequence of arbitrary bytes .
Golang's double and back quotes
Shell double quotes, single quotes, back quotes, backslashes1. Double quotes ""• Use double quotation marks to refer to any character or string other than $, ', \, character[Email protected] ~]# name= "Yuanji"[Email protected] ~]# echo "Hello, $name"Hello,yuanji2. Single quote '• Similar to double quotation marks, the
Original: http://blog.csdn.net/iamlaosong/article/details/54728393
Recently, to compile a shell script to process the data, you need to detect the existence of the data file, the file name contains the date, so you need to generate the date of the last few days, in order to detect the existence of the file, see how the following script in the use of double quotes, single quotes, anti-
Or the old routine to say the cause of things, because the first of the various quotes under Linux is not particularly sensitive, resulting in the day I add Database field errors, the reason for the error was that I used a single quotation mark in the outermost package, Then a sentence in which the need to change the meaning of the place can not be transferred to cause the error.Let's start with a single quote.Single quotes:In order to protect the tex
One, single and double quotation marksBoth single and double quotes are meant to solve the problem of having spaces in the middle.Because the space in Linux as a very typical delimiter, such as String1=this is astring, so execution will be error. To avoid this problem, single and double quotes are generated. Their difference is that the singleThe quotation marks deprive the special meaning of all characters
Single quotation marksPurpose: In order to protect the text from being converted. That is, except for the single quote, all the text inside the single quotation marks is output as is.1. [[email protected] sp49ep9]# echo ' $*>$*>2. [[email protected] sp49ep9]# echo ' She's crying: ' Help 'She is crying: "Help"3. [[Email protected] sp49ep9]# echo ' \\\\ '\\\\4. [[Email protected] sp49ep9]# echo ' hah ' test 'Hah Test #略去了所有 '5. [[Email protected] sp49ep9]# echo ' Today is ' date 'Today is ' Date '
1.single and double quotation marks are used for the user to assign a string with a space to the delimiter of the variable. [email protected] sh]# str= "Today is Monday"[email protected] sh]# echo $strToday is MondayIf there is no single or double quotation marks, the shell interprets the string after the space as a command. [email protected] sh]# Str=today is MondayBash:is:command not found2, the difference between single and double quotation marks. Single
In Python, strings can be enclosed in single quotes or double quotes, which are equivalent, while in PHP, some of the single and double quotes are not the same, although the expression of the string, but in PHP single quotation mark resolution faster than double quotation marks.
If you need to represent a string object in Python, there is no difference between si
Anti-QuoteThe anti-quote bit (') is located above the TAB key of the keyboard, to the left of the 1 key. Note the difference between the single quotation mark (') on the left side of the ENTER key.Plays the role of command substitution in Linux. Command substitution refers to the ability of the shell to interpolate the standard output of a command anywhere on a command line.as follows, the shell executes the date command in the anti-quotation marks and inserts the result into the content display
The anti-quote bit (') is located above the TAB key of the keyboard, to the left of the 1 key. Note the difference between the single quotation mark (') on the left side of the ENTER key.Plays the role of command substitution in Linux. Command substitution refers to the ability of the shell to interpolate the standard output of a command anywhere on a command line.as follows, the shell executes the date command in the anti-quotation marks and inserts the result into the content displayed by the
The anti-quote bit (') is located above the TAB key of the keyboard, to the left of the 1 key. Note the difference between the single quotation mark (') on the left side of the ENTER key.Plays the role of command substitution in Linux. Command substitution refers to the ability of the shell to interpolate the standard output of a command anywhere on a command line.as follows, the shell executes the date command in the anti-quotation marks and inserts the result into the content displayed by the
The back quotation marks the top of the TAB key of the (') keyboard, and the 1 key to the left.Plays the role of command substitution in Linux. Command substitution refers to the ability of the shell to interpolate the standard output of a command anywhere on a command line.as follows, the shell executes the date command in the anti-quotation marks and inserts the result into the content displayed by the echo command.echo Today is ' date 'Today is April 19, 2016 Tuesday 15:53:59 CST Single and
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.