compress one large file into several smaller files?

compress one large file into several smaller files?

Post by Dan Hoffma » Thu, 23 Aug 2001 00:11:01



Hi, we have a 800 MB compressed file that we want to put on 2 cd's.  Are
there compression options (assuming it's still greater than 650MB) that will
allow us to create two or more files?  (and then allow us to recombine them
on a different machine?)
 
 
 

compress one large file into several smaller files?

Post by John Fo » Thu, 23 Aug 2001 00:50:54


Maybe
csplit -- split files according to context


Quote:> Hi, we have a 800 MB compressed file that we want to put on 2 cd's.  Are
> there compression options (assuming it's still greater than 650MB) that
will
> allow us to create two or more files?  (and then allow us to recombine
them
> on a different machine?)


 
 
 

compress one large file into several smaller files?

Post by Daniel Packm » Thu, 23 Aug 2001 00:48:49


compress Big-file
split  Big-file

cat Big-file* | uncompress > Big-File

 
 
 

compress one large file into several smaller files?

Post by Matthew Land » Thu, 23 Aug 2001 00:51:49



> Hi, we have a 800 MB compressed file that we want to put on 2 cd's.  Are
> there compression options (assuming it's still greater than 650MB) that will
> allow us to create two or more files?  (and then allow us to recombine them
> on a different machine?)

Use the split command to get it into a number of smaller files and
cat to put it back together.  Split uses the prefix "x" by default.
So it could be good to specify a prefix.  Be sure to use the `sum`
command to verify that the copy made it back to the exact same as
the origional.

Your proceedures would be along the lines of:

$ split -b 645m filename.tar.Z filename # the second filename is a
                                        # split file prefix
$ ls filename*
filename.tar.Z
filenameaa
filenameab
$ sum filename.tar.Z
07823   339 filename.tar.Z

# Copy the filenameaa and filenameab onto the 2 CDs.  Then copy
# them onto the new system.

# On new system
$ cat filenameaa filenameab > filename.tar.Z
$ sum filename.tar.Z
07823   339 filename.tar.Z

 - Matt
--
_______________________________________________________________________

  IBM High Speed Interconnect - Fibre Channel I/O Dev/Test/Support
   << Comments, views, and opinions are mine alone, not IBM's. >>

 
 
 

compress one large file into several smaller files?

Post by Dan Hoffma » Thu, 23 Aug 2001 01:09:09


How does the split work? Can I specify how many files to split into or a
maximum size?

Quote:> compress Big-file
> split  Big-file

> cat Big-file* | uncompress > Big-File

 
 
 

compress one large file into several smaller files?

Post by Dan Hoffma » Thu, 23 Aug 2001 01:23:36


Thanks for everyone's help.  I'll try it out.


> > Hi, we have a 800 MB compressed file that we want to put on 2 cd's.  Are
> > there compression options (assuming it's still greater than 650MB) that
will
> > allow us to create two or more files?  (and then allow us to recombine
them
> > on a different machine?)

> Use the split command to get it into a number of smaller files and
> cat to put it back together.  Split uses the prefix "x" by default.
> So it could be good to specify a prefix.  Be sure to use the `sum`
> command to verify that the copy made it back to the exact same as
> the origional.

> Your proceedures would be along the lines of:

> $ split -b 645m filename.tar.Z filename # the second filename is a
>                                         # split file prefix
> $ ls filename*
> filename.tar.Z
> filenameaa
> filenameab
> $ sum filename.tar.Z
> 07823   339 filename.tar.Z

> # Copy the filenameaa and filenameab onto the 2 CDs.  Then copy
> # them onto the new system.

> # On new system
> $ cat filenameaa filenameab > filename.tar.Z
> $ sum filename.tar.Z
> 07823   339 filename.tar.Z

>  - Matt
> --
> _______________________________________________________________________

>   IBM High Speed Interconnect - Fibre Channel I/O Dev/Test/Support
>    << Comments, views, and opinions are mine alone, not IBM's. >>

 
 
 

compress one large file into several smaller files?

Post by Daniel Packm » Thu, 23 Aug 2001 02:07:46




>How does the split work? Can I specify how many files to split into or a
>maximum size?


>> compress Big-file
>> split  Big-file

>> cat Big-file* | uncompress > Big-File

Do you have man pages installed?

http://www.rs6000.ibm.com/doc_link/en_US/a_doc_lib/aixgen/topnav/topn...

can be very useful. Other posts have answered your question here
more completely.

 
 
 

1. Splitting large tar into several smaller ones

I've got a large (30+ meg) tar file that I want to chop up into more
manageable pieces. It consists of many subdirectories - each about 1.2
megs in size. These are in 7 groups (A1-n, B1-n, etc).  (Yep,
Linux'ers - this is the SLS tar....)

I'm wary of just using split in a brute force manner, as these are
compressed binary files and my previous attempts have left me with
damaged files.

What I really would like is a way to extract all the "A" files, and
retar them into one smaller tar file, then same for all the B's, etc.

Can anyone suggest a straightforward way to do this?

--

& no one will talk to a host that's close............[301] 56-LINUX
Unless the host (that isn't close).........................pob 1433
is busy, hung or dead....................................20915-1433

2. behaviour of echo in a bash script.

3. Dividing a large file into smaller ones

4. Can I bind A socks5 to an ISDN card ??

5. wanted: sed (or other) script to parse a large file into smaller ones

6. Any one know of a Cobol Port for Linux

7. Help:how do you split a large file into several small files and

8. Linux based treasury system

9. restore one file from a cpio backup of several files

10. how to make one object file from several object files

11. Sweep several files into one text file?

12. If you have slow ppp of compressed files try smaller Window

13. tools to seperate one large text file into two small text files?