redirect-append (>>) creates garbage-y file
William Lebow
William.Lebow@phaseforward.com
Thu Mar 11 18:31:00 GMT 2010
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
More information about the Cygwin
mailing list