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.