next up previous contents
Next: Miscellaneous Up: I/O Redirection Previous: I/O Redirection

I/O Redirection Operators

 

The full set of I/O redirection operators are:

> file
Redirect stdout to file.
>> file
Append stdout to file.
< file
Redirect stdin to file.
<< word
stdin is taken from ``here'' until the word is seen in the input on a line by itself starting in column 1.
> file
Redirect stdout to file.

Wellll, maybe not full. We have a few others which are not common at all:
>& n
Filehandle n is duplicated and used as stdout.
<& n
Filehandle n is duplicated and used as stdin.
<&-
stdin is closed.
>&-
stdout is closed.


next up previous contents
Next: Miscellaneous Up: I/O Redirection Previous: I/O Redirection

Gordon Haverland
Sat Oct 9 13:50:48 MDT 1999