Introduction
Shell scripting includes many problem-solving tools. There is a rich set of tools for text processing. These tools include utilities, such as sed
, awk
, grep
, and cut
, which can be combined to perform text processing needs.
These utilities process files by character, line, word, column, or row to process text files in many ways.
Regular expressions are a basic pattern-matching technique. Most text-processing utilities support regular expressions. With regular expression strings, we can filter, strip, replace, and search within text files.
This chapter includes a collection of recipes to walk you through many solutions to text processing problems.