Assigns the file descriptor (fd) to file for output

File descriptors 0, 1 and 2 are reserved for stdin, stdout and stderr respectively. However, bash shell allows you to assign a file descriptor to an input file or output file. This is done to improve file reading and writing performance. This is known as user defined file descriptors.

Syntax

You can assign a file descriptor to an output file with the following syntax: