Click to See Complete Forum and Search --> : redirecting output


cara
05-01-2001, 02:06 PM
I am using bash. I discovered through trial and error that >& apparently redirects both standard output and standard error. Is there an equivalent for appending to a file? I tried >>& but it didn't work. Thanks for any help!

cara
05-01-2001, 03:05 PM
Go it! In case anyone else is interested, this works:

command >> outputfile 2>&1

The 2>&1 redirects standard error to standard output, thus >> captures it all.