1833588 Members
4161 Online
110061 Solutions
New Discussion

Using SPLIT command

 
SOLVED
Go to solution
Carlo Henrico_1
Regular Advisor

Using SPLIT command

Two questions on the split command

1. Can it be used to split binary files into smaller chunks? I have tried and it does split it up but this leads to my second question.

2. How do you re-join these split files into its original file?

Maybe there is some other utility available. I need to mail some large binary file to someone whose mailserver does not permit large attachments. Is there something else on Unix I could use to split the file up. Using compress is also not sufficient.

Thanx

Carlo
Live fast, die young - enjoy a good looking corpse!
1 REPLY 1
harry d brown jr
Honored Contributor
Solution

Re: Using SPLIT command

To use split on BINARY type files, you need to use one of these options:

-b nk The input file is split into pieces n x 1024 bytes in size. No space separates the n from the k.

-b nm The input file is split into pieces n x 1048576 bytes in size. No space separates the n from the m.


then use:

dd if=splt1 of=bfile
dd if=splt2 >>bfile
dd if=splt3 >>bfile

live free or die
harry

Live Free or Die