fsplit -- splitting up a binary file

Have you ever wanted to copy a file to diskette that was larger than the disk's size? Have you then desperately tried to compress the file without success? Does the system lack a proper split command with the ability to split up binary files? Then fsplit is for you.

This short shell skript uses the standard 'dd' utility to break a large binary file into small chunks of custom size.

Synopsis
fsplit (filename | -) <chunksize>
Parameter
filename
The file to split up. Give a single hyphen '-' to read data from standard input.
chunksize
The size of each chunk in kilobytes.
Output
The program creates files with the 'xx' prefix and a sequential numerical postfix beginning with '00' (followed by '01' etc.).
Recombination
The single chunks can be recombined with the cat command: cat xx* > outfile
Get the script and have fun!


Frank Pilhofer <fp -AT- fpx.de> Back to the Homepage
Last modified: Fri Mar 31 18:41:25 1995