This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: split and cat (NBY)


On 28-Jan-1998, hgfernan@usp.br <hgfernan@usp.br> wrote:
> On 23 Jan 98 at 22:31,  malcolm <malcolm@eml.co.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@cs.mu.oz.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@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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