Split (Binary) Files

See the download page to obtain this program

Description

This program breaks the filename given as parameter into pieces of some size. This is 1200 kbytes by default. The output is multiple files up to the maximum size, with suffixes .1, .2, etc. The script will also work with binary files. Use cat to combine the pieces. The program relies on the program /NextAdmin/Installer.app/chunk that is part of the standard distribution. The intended use of chunk is to break up large files for storage on floppy disc.

Options

The size of piece can be given using:

-k size
size in kbytes (1000's, not 1024's of bytes)

Usage

To break a file into 512 kbyte chunks called myfile.1, myfile.2, ... do:

  chunk -k512 myfile

To recombine them do:

  cat myfile.? > myfile

but be careful if chunks are numbered 10 or more.

History

First public version by Ken Turner, 01/04/96


Up one level to NEXTSTEP/OPENSTEP Utilities

Web Ken Turner Home   Email    Search Search Web Pages

Last Update: 15th July 2006
URL: https://www.cs.stir.ac.uk/~kjt/software/nextstep/chunk.html