Bash Redirections Using Exec

193

If you’ve used the command line much at all you know about I/O redirection for redirecting input to and/or output from a program. What you don’t see all that often or that you may not be familiar with is redirecting I/O inside a bash script. And I’m not talking about redirections that you use when your script executes another command, I’m talking about redirecting your script’s I/O once it has already started executing.

Read more at Linux Journal