delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/29/11:36:41

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: Re: split and cat (NBY)
29 Jan 1998 11:36:41 -0800 :
Message-ID: <19980129224927.52133.cygnus.gnu-win32@mundook.cs.mu.OZ.AU>
References: <34C91A31 DOT 36F6AA85 AT eml DOT co DOT uk>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

On 28-Jan-1998, hgfernan AT usp DOT br <hgfernan AT usp DOT br> wrote:
> On 23 Jan 98 at 22:31,  malcolm <malcolm AT eml DOT co DOT uk> wrote:
> 
> > Are split and cat supposed to work properly as a means of splitting
> > large binary files and joinging the pieces back together. I find that
> > split craps out having performed a good job of creating nothing useful.
> > If I use split on a Linux box and then try to use cat to put the bits
> > back together, that fails as well. Typical files I have tried are 10+MB
> > being split into 1MB chunks.
> > 
> > Just curious to hear if anyone has got them to work - in which case its
> > my setup. Or if its a common problem, is a fix on the way?
> 
> congratulations: like everybody else you've been bitten by the
> binary/non-binary file dichotomy in gnu-win32. :-)

Homework exercise: patch `split' so that it opens its files in binary mode.

(`cat' is a bit more troublesome, but adding a `--binary' option should
not be too hard.)

-- 
Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019