-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to sudhap85 on 4/2/2009 5:45 AM:
> Hi,
>      what i means the problem here is that function is not working for me.
> (i.e) if i run cat > file1 >>file2. Here file1 content is not copied to
> file2.

This is not cygwin specific.  Nor is it how the shell works.  If you want
output to go to two places, you need to use tee, not multiple redirection
operators.

tee file2 < file1 >> file3

copies file1 into file2 (overwrite) and file3 (append).  You probably want
to read a good shell tutorial book.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknUppAACgkQ84KuGfSFAYD8DwCeImC/gLouWFsuuwCMaVYPhVBl
de0AnRneVc9D4xhQZcSCM4AJIyrZcXMt
=edno
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to