Awk of data processing scripts

Source: Internet
Author: User
1. awk is suitable for multi-column matching. it may be better if you use sed to match individual strings. 2. it is best to use () inclusion to separate awk for forward and reverse matching to avoid an error. 3. pay attention to matching a column !~ And ~ Both positive and negative matching. 4. if, cannot split the match or... "/> <scripttype =" text/javascript "src =" http: // 1. awk is suitable for multi-column matching. it may be better if you use sed to match individual strings. 2. when forward and reverse matching are performed for an awk, it is best to separate it with "()" to avoid an error. 3. pay attention to matching "! ~" for a column And "~" Both positive and negative matching. 4. if "," cannot be divided into matching items or an error is returned, you can select "|" and "&" for connection based on the utility. 5. the regular [] must be // included. Otherwise, an error is returned. 6. the space generated by the Tab key is not the default value. "/t" is required ". 7. ^ [] matches all content in the brackets. [^ *] Denies arbitrary characters in parentheses. 8./^ 123 $/, fully matching the "123" character. 9. remember the special characters and check whether "\" should be used to escape the error. 10. Use {} to execute the action. do not forget to add a suffix to all actions in one step. ============== This article is based on the practices of bloggers. the content is simple and will be continued later. Enjoy yourself ~

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.