Syntax
|
>file | write standard output to file
>>file
| append standard output to file
| >&m
| write standard output to file descriptor m
| <file
| read standard intput from file
| <&m
| read standard input from file descriptor m
| <<word
| read standard input from a "here document"
| |
---|
Any of the file redirection syntaxes can be prefixed with a
file descriptor to specify
a file to be used in place of the default file for that syntax.
|
command 2> file | write standard error to file |
---|
Reading Files
|
Truncate a File
|