Redirect Output and Errors
|
|
Using Permanent Redirection in Scripts
from: https://www.putorius.net/linux-io-file-descriptors-and-redirection.html
If you are writing a script and want to redirect data streams without appending the redirect operator or every line, you can use the exec command like this.
|
|
You can use one, both or any number of custom file descriptors in your script.