error and out redirection
Michael Meissner
meissner at osf.org
Fri Sep 21 06:58:34 AEST 1990
In article <4444 at orchid12.UUCP> ellis at motcid.UUCP (John T Ellis)
writes:
| For CSH users, you can do the following:
|
| % (command > std.out) &> std.err
|
| Why this works is that you FIRST execute () with the standard output going
| to std.out, BUT any errors generated by () will be MERGED with standard
| output to std.err. Since you already sent standard output somewhere else,
| the merge results in only the errors! Pretty slick eh?!
The word pathetic comes to mind before slick.
--
Michael Meissner email: meissner at osf.org phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
Do apple growers tell their kids money doesn't grow on bushes?
More information about the Comp.unix.shell
mailing list