Print dual-cited and dual-cited in awk

Source: Internet
Author: User
Double quotation marks and double quotation marks are printed in The awk: awk & amp; #39; {print & quot ;\& quot; & quot ;}& amp; #39; use double quotation marks to enclose a double quotation mark, and use escape character \ to escape double quotation marks to output double quotation marks. ----- Test passed! The method for outputting single quotes is somewhat different from that of double quotes...
Double quotation marks and double quotation marks are printed in The awk: awk '{print "\" "}' enclose a double quotation mark using" "double quotation marks, and then escape the double quotation marks using the escape character, double quotation marks can be output. ----- Test passed! The method for outputting single quotes differs from double quotes. the method is as follows: awk '{print "' \'' "} 'first uses a double quotation mark" ". then add two single quotation marks ''to the double quotation marks, and then add a single transferred single quotation mark \ 'to the two single quotation marks to output single quotation marks --- not tested

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.