Differences between Shell + sed + awk and Perl and Python

Source: Internet
Author: User
Tags perl script
I recently started to learn shell + sed + awk. Linuxsir. orgSee the following comments ArticleTo make it easy for more people to see it! Shell + sed + awk
The three features are the weakest and not debugged. ProgramMost operations can be performed only by running other programs. Therefore, more time, memory, and location are required in the table. The built-in arithmetic operations are very limited, and the array subscript must be numbers. However, it has low requirements on the running environment and is small and convenient, and is the basis for learning system Script Programming.

Perl
At the beginning of the design, it was designed to facilitate the compilation of complex and efficient system scripts. It should also be the most extensive script.Programming Language. It is equivalent to the Swiss army knife in programming. It has a strong processing capability for character and text files. Previously, it required shell + sed + awk + C to complete the task, and only a Perl script is required. In addition, the application field has been extended to support object-oriented programming.

Python
The object-oriented dynamic public language is suitable for scripting and rapid development. It is the most notable feature of being a bridge language between a compilation language (such as C) and a scripting language (such as Perl, its powerful functions, scalability, and object-oriented features make it a tool for large-scale application development.

It can be seen that Perl is more powerful than shell + sed + awk, but learning the two is not in conflict. It is usually used to learn shell as the basic for Script Programming. Python is very different from the former two in the field of application, and there is not much comparability. For different tasks, you only need to use one or three of them. Therefore, you need to decide who to learn and who to learn.

 

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.