Three major text processing tools grep, sed, and awk Brief introduction

Source: Internet
Author: User

grep, SED, and awk are all text processing tools, and although they all have their advantages and disadvantages, one text processing command cannot be completely replaced by another, or three text-processing commands will not appear. In comparison, however, SED and awk are more powerful and have been introduced in a separate language.

grep: Text filter, if only filter text, can use grep, its efficiency is much higher than others; Sed:stream editor, Stream editor, default only processing mode space, do not process the original data, if you process the data is processed for the row, you can use SED;

awk: Report generator, formatted for display later. If you need to generate information about the data you are working on, or if the data you are working on is column-based, you might want to use awk.

See: http://lq2419.blog.51cto.com/1365130/1238880

Three major text processing tools grep, sed, and awk Brief introduction

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.