About AWK Programming

Source: Internet
Author: User
For more information about AWK programming-general Linux technology-Linux programming and kernel, see the following. # Awk '(tot + = $5); END {print tot}' example1.txt

User1 password1 username1 unit1 10
User2 password2 username2 unit2 20
User3 password3 username3 unit3 30
60

The above program is used to obtain the comprehensive code and Display Results of the 5th domains. Now, because the file to be processed is very large and you don't want to display the file content, you only need one result. How can I modify the code? hope you can enlighten me
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.