Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2005, 06:36 PM   #1
Registered: Dec 2004
Distribution: Slack 10
Posts: 59

Rep: Reputation: 15
Splitting a File

I have a 1.5 MB file that I need to transfer from one PC to another using only 2 floppy disks. Is there any way I could split the file in half and then put it back together at the other computer (btw its a .deb file). Thanks.
Old 02-22-2005, 06:43 PM   #2
Registered: Aug 2002
Posts: 25,010

Rep: Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683
Ain't searching wonderfull

Compressing the file if it isn't already might bring it under 1.4 mb.

Last edited by michaelk; 02-22-2005 at 06:45 PM.
Old 02-22-2005, 06:44 PM   #3
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
EDIT: I really must type more quickly


There are plenty of ways to do this, but the simplest IMHO is simply to use split:
split -b 700k foobar.mpeg

          then, at the other end:

cat xaa xab > newfoobar.mpeg


Last edited by mjrich; 02-22-2005 at 06:45 PM.
Old 02-22-2005, 07:01 PM   #4
Registered: Dec 2004
Distribution: Slack 10
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks but the only problem is the source computer is running WinXP and the target computer is running Linux.
Old 02-22-2005, 08:15 PM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
First, try zipping the file to reduce its size. You can use 'unzip' to restore the original.

Another option is to nstall one of the windows rar programs. Use 'unrar' in linux to restore it.

Another option is to use a USB keydrive to transfer the file.

Another option is to use network sharing instead of 'sneaker net'.

Another option is to send the file using e-mail. ( Assuming the server allows extensions that size ).

There is also a windows split program but I don't know what it is called. I think it is shareware. On the linux side you will want to delete the file with the .000 extention and use 'cat <basename>.[[:digit:]][[:digit:]][[:digit:]]' to re-assemble the file.
The .000 file will just contain meta-information, so you don't want it starting the assembled file.

The cat program will sort the arguments alphabetically, to the parts get put together in the correct order. For windows, you need a script that uses copy /b source.001 /b +source.002 /b ...
to re-assemble the pieces.


Update: there is a freeware program called HJsplit. It also has a linux version, which you might want to use if you were to go from Linux -> Windows.

Last edited by jschiwal; 02-22-2005 at 08:19 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Online File Splitting Randvegeta Linux - Networking 7 04-29-2005 02:25 PM
avidemux and mplex and file splitting Brain Drop Linux - Software 0 11-29-2004 11:26 PM
Splitting an mp3 file into two different ones... natalinasmpf Linux - Software 7 08-27-2004 08:01 AM
file splitting???? spideywebsling Linux - General 4 07-19-2004 07:42 PM
splitting large tar file derfberg Linux - Newbie 1 01-08-2003 08:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration