This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: redirect-append (>>) creates garbage-y file
- From: William Lebow <William dot Lebow at phaseforward dot com>
- Cc: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 11 Mar 2010 13:12:41 -0500
- Subject: RE: redirect-append (>>) creates garbage-y file
- References: <01499D518A9B6F4493FC5A2D32F7A4FC51B52C97D4@MB-EXBX01.north.pf.com> <1ef5a52f1003111000x17bd3716yb75d50a9f5db10@mail.gmail.com>
echo foo | tee -a test3.txt : terminal output is okay but test3.text
starts with 3 characters of garbage before the string foo
echo foo | tee test4.txt : terminal output is okay and test4.txt is okay too
So "tee -a" has the same issue as ">>" when creating a new file.
BTW, I believe that the garbage characters that precede the text is an encrypted
version of the text in the file. This Credant software is protecting my txt files
by encrypting them.
-- Bill
-----Original Message-----
From: Csaba Raduly [mailto:rcsaba@gmail.com]
Sent: Thursday, March 11, 2010 1:00 PM
To: William Lebow
Cc: cygwin@cygwin.com
Subject: Re: redirect-append (>>) creates garbage-y file
On Thu, Mar 11, 2010 at 6:46 PM, William Lebow wrote:
> Hi Csaba,
>
> Thank you very much for the reply. I've downgraded my version of cygwin so I
> need to wait and do the test when I have a few minutes to reinstall the
> newer one. Is the command you sent correct? I don't think tail has a "-a"
> ?option.
That's because it should have been
echo foo | tee -a test3.txt
:(
--
Life is complex, with real and imaginary parts
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple