connecting to a server
Tony Pursell
ajp at princeswalk.fsnet.co.uk
Thu Jan 13 12:16:36 UTC 2011
On Thu, 2011-01-13 at 11:12 +0100, Amedee Van Gasse wrote:
> 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
>
>
>
I stand corrected. Thank you Amedee. I think the reason why I
uuencoded stuff was to send the files using uucp. As I said, it was
about 15 years ago and moving data between Unix machines (me in UK and
the customer in Australia) was much more basic then. We split files
down to reduce the time needed to re-send if the transfer failed. We
were directly dialled up to the remote computer in those days.
Tony
More information about the ubuntu-users
mailing list