Describe simple differences between single quotes, double quotes, and unquoted in a Linux shell (2 minutes)

Source: Internet
Author: User

    • Brief summary:
Single quotes:What you can say is what you see is what you get: the contents of a single quotation mark are output as-is, or what you see in single quotes is what you output. double quotes:The contents of the double quotation marks are output, and if there are commands, variables, etc., the variables, commands are parsed out and then the final content is output. No quotes:does not consider the string containing the space as a whole output, if the content has commands, variables, etc., will first parse the variables, commands, and then in the output of the final content, if the string with a space and other special characters, it will not be complete output, need to add double quotation marks, general continuous string, number, Paths, etc. can be used.

Describe simple differences between single quotes, double quotes, and unquoted in a Linux shell (2 minutes)

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.