LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-28-2005, 08:49 PM   #1
hicham007
LQ Newbie
 
Registered: May 2005
Location: canada
Distribution: SuSE 8.0
Posts: 9

Rep: Reputation: 0
Compress and split a big sized file into smaller files


hallo,

there is any command that compress and split a big sized file into many smaller compressed files
for example a data file (file.data) with the size of 15 Mega bytes will compressed (by tar command for example) and divided to many smaller files of 3 mega each file (file_1.zip, file_2.zip .... ), because i have to email those files as attachments.

PS: I would like that the zipped files will be recognized and gathered by windows tools (like Win-rare tool)..

thanks!!
 
Old 07-28-2005, 09:39 PM   #2
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Not sure about a tool that would be recognized by Winrar, but a trick I saw someone on another forum use was to use a script that used the "split" command to split the file into pieces, and then it wrote a DOS batch file that was distributed with the files that used the "copy /b file01 + file02 + ..." form of the DOS copy command (my syntax might be a bit off).
 
Old 07-28-2005, 09:50 PM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
The rar and unrar commands are available for Linux; check with your distribution's repositories. Or google for them.
 
Old 07-28-2005, 09:56 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Also, the zip and zipsplit commands are available in Linux. The zip files and rar files created under Linux are compatible with the Windows utilities.
 
  


Reply


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
Split large file in several files using scripting (awk etc.) chipix Programming 14 10-29-2007 12:16 PM
splitting one big file to smaller parts? minm Linux - Newbie 4 12-26-2004 04:05 AM
splitting a larg file into smaller files to be rebuilt on a windows comp 1eyedgorilla Linux - Software 2 12-22-2004 07:30 PM
a good program for choping big mp3's into smaller ones? poiuytrewq Linux - Software 1 10-28-2004 07:06 PM
The big question, and a few smaller ones... redkazan Linux - Newbie 7 01-07-2004 03:09 AM


All times are GMT -5. The time now is 04:52 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration