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
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
[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
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 '
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
First of all, in the bash script, there are three kinds of quotes
1. Single quotes '2. Double quotes "3. Inverted quotes '
Single quotation markThe two string enclosed in single quotes is an ordinary string that retains its original literal
Shell double quotes, single quotes, back quotes, backslashes single quote ': Disallow reference to other variable values, $ as normal characters. Anti-quote ": Outputs the command execution result1. Double quotes ""• Use double quotation marks to
Both single quotes and double quotes can disable shell processing for special characters. The difference is that double quotes do not have strict single quotes. Single quotes disable all characters with special functions, while double quotes only
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
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
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.