[Techtalk] Using > to redirect standard error?
Rasjid Wilcox
rasjidw at openminddev.net
Wed Jan 14 19:59:58 EST 2004
On Wednesday 14 January 2004 14:25, John Clarke wrote:
> If you're using a bash (or sh, but not csh) shell:
> command > file 2>&1 redirects both stdout and stderr to 'file'
A short-hand way of writing this (redirecting both stdout and stderr) is:
$ command &> file
This should also work under cygwin's bash.
--
Rasjid Wilcox
Canberra, Australia (UTC +11 hrs)
http://www.openminddev.net
More information about the Techtalk
mailing list