This is the mail archive of the cygwin 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: cygwin commands (cat,grep) not working in my windows 2008 machine


hi,
    The same test got passed with cygwin 5.2 in windows 2003.



Eric Blake wrote:
> 
> -----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             ebb9@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/
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/cygwin-commands-%28cat%2Cgrep%29-not-working-in-my-windows-2008-machine-tp22842028p22846690.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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/


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