split and cat
Thu Jan 29 17:11:00 GMT 1998
> >On 23 Jan 98 at 22:31, malcolm <email@example.com> 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
> >> split craps out having performed a good job of creating nothing
> >> If I use split on a Linux box and then try to use cat to put the
> >> back together, that fails as well. Typical files I have tried are
> >> being split into 1MB chunks.
> >> Just curious to hear if anyone has got them to work - in which case
> >> my setup. Or if its a common problem, is a fix on the way?
> On 28-Jan-1998, firstname.lastname@example.org <email@example.com> wrote:
> > congratulations: like everybody else you've been bitten by the
> > binary/non-binary file dichotomy in gnu-win32. :-)
Then Fergus wrote:
>Homework exercise: patch `split' so that it opens its files in binary
>(`cat' is a bit more troublesome, but adding a `--binary' option should
>not be too hard.)
DJGPP's cat defaults to binary for all files and 'text mode' for console
output, but provides a 'binary' option specific to console output;
their sources to make your homework easier:
Usage: f:/djgpp/bin/cat.exe [OPTION] [FILE]...
Concatenate FILE(s), or standard input, to standard output.
-A, --show-all equivalent to -vET
-b, --number-nonblank number nonblank output lines
-e equivalent to -vE
-E, --show-ends display $ at end of each line
-n, --number number all output lines
-s, --squeeze-blank never more than one single blank line
-t equivalent to -vT
-T, --show-tabs display TAB characters as ^I
-v, --show-nonprinting use ^ and M- notation, except for LFD and
--help display this help and exit
--version output version information and exit
With no FILE, or when FILE is -, read standard input.
-B, --binary use binary writes to the console device.
For help on using this list (especially unsubscribing), send a message to
"firstname.lastname@example.org" with one line of text: "help".
More information about the Cygwin