There are simpler ways to do this, but by far the most universal is this:
split -b 1400k bigfile.tar.gz (for Linux)or maybe: split -10000 bigfile.tar.gz (for Unix in general, or older split)With the second form (splitting based on occurence of newline character in a binary file), you may need to experiment a little with the parameter (-10000) in order to get decent sizes of the offspring-files. cat xaa xab xac xad > bigfile.tar.gzIf you have lots of small pieces, you may consider using shell wildcards: cat xa* > bigfile.tar.gz copy /b xaa + xab + xac > bigfile.zip |
Return to : Unix System Administration Hints and Tips