LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-22-2005, 05:36 PM   #1
Slayer097
Member
 
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, 05:43 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

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

http://www.linuxquestions.org/questi...icle&artid=227

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

Last edited by michaelk; 02-22-2005 at 05:45 PM.
 
Old 02-22-2005, 05:44 PM   #3
mjrich
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:
Code:
split -b 700k foobar.mpeg

          then, at the other end:

cat xaa xab > newfoobar.mpeg
Cheers,

mj

Last edited by mjrich; 02-22-2005 at 05:45 PM.
 
Old 02-22-2005, 06:01 PM   #4
Slayer097
Member
 
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, 07:15 PM   #5
jschiwal
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.
http://www.freebyte.com/hjsplit/#linux

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


Reply



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 01:25 PM
avidemux and mplex and file splitting Brain Drop Linux - Software 0 11-29-2004 10:26 PM
Splitting an mp3 file into two different ones... natalinasmpf Linux - Software 7 08-27-2004 07:01 AM
file splitting???? spideywebsling Linux - General 4 07-19-2004 06:42 PM
splitting large tar file derfberg Linux - Newbie 1 01-08-2003 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:44 PM.

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