binary split

Daniel Hitt hitt at neon.Stanford.EDU
Mon Mar 18 01:25:36 AEST 1991


Is there an analogue of the split command that instead of working on
the basis of lines works on the basis of characters?

That is, one would type
splitPrime -200000 afile z
and afile would be split into chunks of 200000 bytes in files named
z00 z01 z02 . . . (the suffixes being a function of how large afile is).

Of course, one can easily write such a program, but i'd prefer to use
a standard tool if there is one (because i can use it in scripts on
different machines, etc.).

If this is an RTFM question, please give me the section and command name.

Thanks for any info anyone can provide.

dan
(hitt at neon.stanford.edu)



More information about the Comp.unix.questions mailing list