November 2015
Beginner
282 pages
5h 5m
English
We have an option to redirect standard input, output, and errors, for example, to a file, another command, intended stream, and so on. Redirection is useful in different ways. For example, I have a bash script whose output and errors are displayed on a standard output—that is, terminal. We can avoid mixing an error and output by redirecting one of them or both to a file. Different operators are used for redirection. The following table shows some of operators used for redirection, along with its description:
|
Operator |
Description |
|---|---|
|
|
This redirects a standard output to a file |
|
|
This appends a standard output to a file |
|
|
This redirects a standard input from a file |
|
|
This redirects a ... |