This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IO Redirection



 Hallo!

 OT, but ...

On Wed, 13 Mar 2002, Robert Mark Bram wrote:

> Howdy all!
>
> I have a question about IO redirection.
>
>    > file
>          redirect standard output to file
>    2> file
>          redirect error output to file
>    &> file
>          redirect error and standard output to file
>    >> file
>          append standard output to file
>
> How do I append error output?
> How do I append error and standard output?

 Just as you have written?
 ">>" appends, ">" write to a new file, independend of the file
 or source selected. That is,  "&>>file" appends both.

 Why is that not obvious ?

 Bjoern

-- 
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de   |
+---------------------------------------------------------------------+


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]