Chapter 5. I/O redirection

Table of Contents
5.1. What are standard input and standard output?
5.1.1. The redirection operators
5.1.2. Advanced redirection features
5.1.3. Filters
5.2. Summary
5.3. Exercises

This chapter describes more about the powerful UNIX mechanism of redirecting input, output and errors. Topics include:

  • Standard input, output and errors

  • Redirection operators

  • How to use output of one command as input for another

  • Input redirection

  • Handling standard error messages

  • Combining redirection of input, output and error streams

  • Output filters