Awk command learning summary and awk command series Learning (Linux Shell)

Source: Internet
Author: User
Previous

We all know that Linux Shell is very powerful in text processing. There is a powerful set of text processing tools: grep, sed, awk. Grep is often used for searching and matching text and SEDCompositionThis edited replacement and awk are also the most powerful and often used for report generation! The processing efficiency is very high. A file of several hundred MB can also be completed in seconds! After reading the information, you will find that it can not only process text quickly through command lines. It can also write awk files and use its own special syntax functions to implement very powerful functions. It has its own programming syntax. Well, when it comes to this, it is estimated that some people have begun to whisper, "isn't it just filtering and making statistics? This is complicated !", Actually, the tool is very powerful. You can use it to solve your own problems! If you are interested, I will share more than 10 texts.

 

Awk basic syntax

The following does not mention how to use the awk command. You can run: awk-h to query all the commands and parameters! The following section describes awk as a language.

    1. How to define your own variables in the awk Language
    2. Linux Shell awk get external variables (variable pass value) Introduction How does awk get external input variables
    3. Linux awk operators (Arithmetic Operators, value assignment operators, Relational operators, logical operators, and regular operators)
    4. Linux awk string connection operation (string to digit, number to string) awk string operation method and data type conversion
    5. Introduction to the awk array operation in Linux
    6. Linux Shell awk process control statements (if, for, while, do) details what statements are used in awk process control and how to use them.
    7. Linux awk Regular Expressions and regular operators
    8. Linux awk built-in functions
    9. Two Methods for operating Linux awk multi-file: awk File Operation
Hybrid use of awk instances
    1. Shell awk implements real-time Nic traffic monitoring script (common application 2) For nic traffic monitoring
    2. Awk Web Log Analysis (page execution time) (common applications 3) web log analysis through awk
    3. Awk multiline merge [next usage] (common application 4) How to Use awk next to merge multiple files
    4. Awk array sorting methods
Remarks

I did not expect to write these articles one after another. It can be a series. Well, I will continue to add some suggestions. I hope you can give me some suggestions! Today is 2013. I haven't written it for more than two years.

author: chengmo QQ: 8292669
Source: http://www.cnblogs.com/chengmo
the copyright of this article belongs to the author and blog park a total, welcome to reprint, please be sure to add the original link.

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.