Chapter 2. The Linux Tool Box

Just as there are essential tools that a carpenter uses, there are also essential tools (also called utilities) the shell programmer needs to write meaningful and efficient scripts. There are hundreds of Linux tools available, and many of them are everyday commands such as ls, pwd, who, and vi. These utilities, provided by the Free Software Foundation under the Gnu Public License Agreement, are enhanced versions of their like-named popular UNIX utilities. The three major utilities that will be discussed here are grep, sed, and gawk.[1] Before you fully appreciate the power of grep, sed, and gawk, you must have a good foundation in the use of regular expressions and regular expression metacharacters.

[1] A complete ...

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.