Linux command learning-single quotation marks (''), double quotation marks (" "), and small quotation marks ('')

Source: Internet
Author: User
Linux command Learning & mdash; single quotation marks (& amp; lsquo; & amp; rsquo;), double quotation marks (), and small quotation marks ('') the conclusion is also very important for the application of quotation marks when writing shell scripts. here we will summarize the characteristics of the three quotation marks. 1. single quotation marks (& amp; lsquo; & amp; rsquo... linux command learning-single quotation marks (''), double quotation marks (" "), and small quotation marks ('') are also very important for the application of quotation marks when writing shell scripts, here we will summarize the characteristics of the three quotation marks. 1. single quotes (''). The content enclosed by single quotes will be treated as a string. even if a line break like \ n is made, \ n rather than a line break will be output. 2. double quotation marks (""). Unlike single quotation marks, double quotation marks output escape characters of the package content. The following is an example: [javascript] $ name = kehr $ echo "$ name" kehr $ echo '$ name' $ name obviously shows the difference between the two. 3. small quotation marks ('') I don't know the name of this symbol. I call it "small quotation marks", haha. The function is to execute the content enclosed in small quotes first. For example, the following command is used when we install files such as kernel devel: [html] yum install kernel-devel-'uname-R' the small quotation mark here is the key on the left of the keyboard number 1.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.