connecting to a server
Amedee Van Gasse
amedee-ubuntu at amedee.be
Thu Jan 13 10:12:51 UTC 2011
On Wed, January 12, 2011 18:11, Tony Pursell wrote:
>> Is there any way to split
>> up the file, write the pieces of the file to disk, read the disks on the
>> laptop and then reconstruct the big file from its pieces. This would
>> be very laborious and the network route is far better.
>>
>
> There is a utility called 'split' that will split up text files and then
> you can put then back together with 'cat' (just make sure you cat the
> pieces together in the right order, of course).
>
> If the file is binary you will need to text encode it first. The
> 'base64' utility will do that.
There is no need to encode a binary file to split it. Just use split, for
example:
# That's 1 GB, 1000^3 bytes
split --bytes=1GB --numeric-suffixes bigfile splitfile
# makes splitfile00 splitfile01 splitfile02 splitfile03 ...
# copy files to your laptop and put them back together
cat splitfile00 splitfile01 splitfile02 splitfile03 > bigfile
# Using wildcards with cat seems to work fine too:
cat splitfile?? > bigfile
More information about the ubuntu-users
mailing list