LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   split file (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/split-file-259797/)

farkmischer 11-27-2004 07:44 AM

split file
 
I was able to install debian on my laptop with a bunch of floppy disks that I was able to download. I have now gotten used to the command line environment and would like to add some programs. Unfortunately it appears that the debian package that I installed did not include gcc. I found lxsplit which would allow me to split the files that I have downloaded on my xp machine (like emacs, xwindows, etc.) put them on a floppy disk and rejoin them on my laptop to install. How ever lxsplit comes in source code only and I can't compile it. The GCC code and dep packages all seem to be too big to fit on a disk. I've been looking for my PC Card ethernet card but haven't found it yet. Does anyone have any ideas? Any help would be much appreciated. Thanks, Mark Fischer.

JunctaJuvant 11-27-2004 04:25 PM

I'm not sure I understand the question, but to rejoin split files in linux you can use the "cat" command.

farkmischer 11-27-2004 05:11 PM

Sorry, I was tired when I wrote all that. I used HJSplit to split Xdoc.tgz into Xdoc.tgz.001 and Xdoc.tgz.002. Can I use cat to rejoin them? I ready the man file and I'm not sure what my command line should look like. What do I type in to join these two files back together? Thanks, Mark Fischer.

JunctaJuvant 11-28-2004 07:19 AM

Oops, sorry I forgot about output redirection.
To rejoin Xdoc.tgz.001 and Xdoc.tgz.002 you could try the following command:
Code:

cat Xdoc.tgz.001 Xdoc.tgz.002 > Xdoc.tgz
The ">" command should redirect the output of cat from standard output to the single file Xdoc.tgz, thereby effectively concatenating the files.
I hope that works.

JJ


All times are GMT -5. The time now is 10:19 AM.