Shell Chapter 3 quotation marks and operators

Source: Internet
Author: User

2.2 quotation marks

1, double quotation marks
Double quotation marks can reference any character except '(reverse quotation marks), $, \
2, single quotes
Single quotation marks ignore any referenced values. In other words, if special meanings are shielded, All characters in the quotation marks, including quotation marks, are considered as a string.
3. Reverse quotation marks
Shell executes the content in the back quotes as a command.
4, \ backslash
SHIELD special characters from common characters
& * + ^ '|?

Operator
1, bitwise Operator
~ OP1 anti-Operator
OP1 <OP2 left shift operator
> Right shift operator
& Comparison Operators
^ XOR operator
| Or operator

$ [] Tell the expressions in Shell brackets to evaluate

2. logical operators
&&

3. Value assignment operator
=, + =,-=, * =,/=, & =

Let command to assign values to expressions
Let COUNT = $ count + $ change
Let count + = change
[Root] Var = 65
Let var + = 4
Echo $ VaR
$ []

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.