Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-28-2005, 11:25 AM   #1
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
splitting large files to smaller parts

i wanna split large files (larger than 1GB) to small parts.
i know i can use split/cat commands to do this, but is there any applications with a gui that can do the same? i have tried Karchiver, which can archive and then split files, but it is really unstable and slow...perhaps because of the large file sizes.

Old 01-28-2005, 11:55 AM   #2
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
If it's an ascii file, you should be able to use console tools - I don't know what bash's largest integers are (long?), but something like:

for ((a=1;a<$lastlinenum;a+=$howmany));do [output lines] $a $a+$howmany > file_$a.txt;done

you need special brackets for $a+howmany to evaluate it, I don't know which kinds of brackets they are; I don't know what command you'd use for [output lines]

You can later just put them back together by

cat file_* >> wholefile.txt

Hope this works for you.

Old 01-28-2005, 12:15 PM   #3
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
thanks for the suggestion, but my point was not to use console. if i were to use console i would think its easier to simply use split command and then cat to join them.
but i dont want to use console...i want to use an application with a gui.
but thanks anyways


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
splitting one big file to smaller parts? minm Linux - Newbie 4 12-26-2004 03:05 AM
splitting a larg file into smaller files to be rebuilt on a windows comp 1eyedgorilla Linux - Software 2 12-22-2004 06:30 PM
Splitting A Large Xml File anirudh Programming 7 09-03-2004 04:28 AM
Help! Splitting 1 large partition into 3! sh1ft Linux - Hardware 2 06-30-2004 09:04 AM
splitting large tar file derfberg Linux - Newbie 1 01-08-2003 07:44 PM

All times are GMT -5. The time now is 07:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration