Chapter 5. I/O redirection

Chapter 5. I/O redirection

Abstract

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

  • How to put output of a command in a file for later reference

  • How to append output of multiple commands to a file

  • Input redirection

  • Handling standard error messages

  • Combining redirection of input, output and error streams

  • Output filters