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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access