When processing text streams within a script or when piping output at the shell prompt, there may be times when you need to filter the output of one command so that only certain portions of the text stream are actually passed along to the stndin of the next command. There are a variety of tools you can use to do this. In the last part of this chapter, we’ll look at using the following commands:
• expand and unexpand
• join and paste
• sed and awk
Let’s begin by looking at the cut command.
The cut command is used to print columns or fields that you specify from a file to the standard output. By default, the Tab character is used as a delimiter. The following ...