LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 07:49 PM   #1
hicham007
LQ Newbie
 
Registered: May 2005
Location: canada
Distribution: SuSE 8.0
Posts: 9

Rep: Reputation: 1
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, 08: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, 08: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: 344Reputation: 344Reputation: 344Reputation: 344
The rar and unrar commands are available for Linux; check with your distribution's repositories. Or google for them.
 
Old 07-28-2005, 08: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: 344Reputation: 344Reputation: 344Reputation: 344
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



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 11:16 AM
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
a good program for choping big mp3's into smaller ones? poiuytrewq Linux - Software 1 10-28-2004 06:06 PM
The big question, and a few smaller ones... redkazan Linux - Newbie 7 01-07-2004 02:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:22 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