| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Peter Milne" <peter DOT milne AT netspeed DOT com DOT au> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | problem concating (>>) to a large file |
| Date: | Fri, 25 May 2007 18:04:21 +1000 |
| Message-ID: | <001201c79ea3$4d82bce0$8500a8c0@RUSNAK> |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Office Outlook 11 |
| X-X-SpamDetect: | : 0.000000 |
| X-IP-stats: | Incoming Last 0, First 92, in=758, out=0, spam=0 Known=true ip=203.56.186.192 |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
I have a large file, let's call it A. I want to stick the contents of a
small file (let's call it B) onto the end of A.
Until recently in cygwin I could just type:
cat B >> A
and it did exactly what I wanted.
Now though, presumably because A has gotten so large, when I do the above
command the contents of file B get copied onto the front of file A rather
than onto its end.
I assume that A has become sufficiently large that a 64-bit file offset is
needed to properly address it and that >> doesn't currently support this.
If so this certainly seems like a short coming, perhaps even a bug.
I updated my version of cygwin to the latest version but this didn't help.
Is there a fix or workaround?
cp A B > C then mv C A achieves what I want but is slow, inefficient and
inconvenient.
I'm not on the list, so please copy any replies to my email address.
Thanks
Peter
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |