old-www/LDP/intro-linux/html/chap_05.html

270 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>I/O redirection</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Introduction to Linux"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Exercises"
HREF="sect_04_06.html"><LINK
REL="NEXT"
TITLE="Simple redirections"
HREF="sect_05_01.html"></HEAD
><BODY
CLASS="chapter"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Introduction to Linux: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="sect_04_06.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="sect_05_01.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="chapter"
><H1
><A
NAME="chap_05"
></A
>Chapter 5. I/O redirection</H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>5.1. <A
HREF="sect_05_01.html"
>Simple redirections</A
></DT
><DD
><DL
><DT
>5.1.1. <A
HREF="sect_05_01.html#sect_05_01_01"
>What are standard input and standard output?</A
></DT
><DT
>5.1.2. <A
HREF="sect_05_01.html#sect_05_01_02"
>The redirection operators</A
></DT
></DL
></DD
><DT
>5.2. <A
HREF="sect_05_02.html"
>Advanced redirection features</A
></DT
><DD
><DL
><DT
>5.2.1. <A
HREF="sect_05_02.html#sect_05_02_01"
>Use of file descriptors</A
></DT
><DT
>5.2.2. <A
HREF="sect_05_02.html#sect_05_02_02"
>Examples</A
></DT
></DL
></DD
><DT
>5.3. <A
HREF="sect_05_03.html"
>Filters</A
></DT
><DD
><DL
><DT
>5.3.1. <A
HREF="sect_05_03.html#sect_05_03_01"
>More about grep</A
></DT
><DT
>5.3.2. <A
HREF="sect_05_03.html#sect_05_03_02"
>Filtering output</A
></DT
></DL
></DD
><DT
>5.4. <A
HREF="sect_05_04.html"
>Summary</A
></DT
><DT
>5.5. <A
HREF="sect_05_05.html"
>Exercises</A
></DT
></DL
></DIV
><BLOCKQUOTE
CLASS="ABSTRACT"
><DIV
CLASS="abstract"
><A
NAME="AEN6144"
></A
><P
></P
><P
>This chapter describes more about the powerful UNIX mechanism of redirecting input, output and errors. Topics include:</P
><P
>&#13;<P
></P
><UL
><LI
><P
>Standard input, output and errors</P
></LI
><LI
><P
>Redirection operators</P
></LI
><LI
><P
>How to use output of one command as input for another</P
></LI
><LI
><P
>How to put output of a command in a file for later referrence</P
></LI
><LI
><P
>How to append output of multiple commands to a file</P
></LI
><LI
><P
>Input redirection</P
></LI
><LI
><P
>Handling standard error messages</P
></LI
><LI
><P
>Combining redirection of input, output and error streams</P
></LI
><LI
><P
>Output filters</P
></LI
></UL
>
</P
><P
></P
></DIV
></BLOCKQUOTE
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="sect_04_06.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="sect_05_01.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Exercises</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Simple redirections</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>