
[n] redir-op file

       where redir-op is one of the redirection operators mentioned previously.
       Following  is  a  list  of  the  possible  redirections.   The [n] is an
       optional number between 0 and 9, as in ‘3’ (not ‘[3]’), that refers to a
       file descriptor.

 [n]> file   Redirect standard output (or n) to file.

 [n]>| file  Same, but override the -C option.

 [n]>> file  Append standard output (or n) to file.

 [n]< file   Redirect standard input (or n) from file.

 [n1]<&n2    Copy file descriptor n2 as stdout (or fd n1).  fd n2.

 [n]<&-      Close standard input (or n).

 [n1]>&n2    Copy file descriptor n2 as stdin (or fd n1).  fd n2.

 [n]>&-      Close standard output (or n).

 [n]<> file  Open file for reading and writing  on  standard  input
             (or n).

The following redirection is often called a “here-document”.

[n]<< delimiter
      here-doc-text ...
delimiter
