Self-learning Linux Shell19.2-gawk program advanced features

Source: Internet
Author: User

Click Back to learn the path of the Linux command line and shell script

19.2-gawk Program Advanced Features

The two most widely used command line editors in the Linux world:

    • Sed
    • Gawk
1. Gawk Using variables

A common feature of programming languages is the use of variables to access values. The Gawk programming language supports two different types of variables:

    • Built-in variables
    • Custom variables
1.1 Built-in variables

The Gawk program uses built-in variables to refer to some of the special features in the program data.

Variable Describe
FieldWidths A column of numbers separated by spaces that defines the exact width of each data field
Fs Enter Field delimiter
Rs Enter data row delimiter
OFS Output field delimiter
ORS Output data row delimiter

..................

Self-learning Linux Shell19.2-gawk program advanced features

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.