My 2 paisas

split and join huge files

Posted on: January 13, 2010

I recently has asked my friend to download edubuntu9.10 iso . It was a 3.4 gb iso. After he finished downloading when i had to transfer it to my system, we faced a small problem. His LAN card was not working and we had only 1gb pen drive. So the only option we had was to split the iso into files of size 1gb and then transfer them using pen drive.

command to split a huge file into smaller file.

split -b 1G

is the prefix of the smaller files that will be created.

After I split the files, i transfered each file in to my system and then joined the files using a very simple “cat” command.

Join the files splitted by the above commad.

$cat aa bb cc dd>huge-filename

The above command will join all the files and create the file huge-filename.

I need to test whether the order of the smaller files matters in the cat command. Logic says that it should matter. lemme check it out.

Confirmed it. The order of the smaller files is very importent to get back the original file.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Links that I liked to save

Blog Stats

  • 45,141 hits
%d bloggers like this: