Ausam/doc/man/man1/fd2.1

Find at most related files.
including files from this version of Unix.

.tr ~
.th FD2 I 5/31/77
.sh NAME
fd2 \*- redirect file descriptor 2 (diagnostic output)
.sh SYNOPSIS
.bd fd2
[ fd2arg ] command [ command-arg ] ...
.sh DESCRIPTION
.it Fd2
executes
.it command
with file descriptor 2
(the diagnostic output) redirected to a file or to the standard output.
There are three forms:
.na
.sp
.lp +30 25
fd2 \-file comd ...	[write on
.it file
]
.lp +30 25
fd2 \-\-file comd ...	[append to
.it file
]
.lp +30 25
fd2 + comd ...	[causes
file descriptor 2 to be made the same as file descriptor 1]
.i0
.sp
In either of the first two cases,
omission of
.it file
causes
.bd msg.out
to be used as the output file.
Omission of
.it fd2arg
has the effect of
.bd \-msg.out.
.tr ~~