Results 1 to 2 of 2

Thread: How do I split existing large rar files into smaller files, without extracting?

  1. #1
    Join Date
    Sep 2007
    Beans
    223
    Distro
    Ubuntu

    How do I split existing large rar files into smaller files, without extracting?

    Hi,
    I have a bunch of large (say 100mb to 800mb) rar files that I want to upload, (which is limited by upload destination to 100mb). I don't want to have to extract them all and then re-archive at 99mb sizes. So is there an easier/quicker way to do this?

    Thanks
    Donal
    Donal
    Ireland
    Registered Linux User #477443

  2. #2
    Join Date
    Mar 2009
    Location
    Lincoln, NE
    Beans
    14
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: How do I split existing large rar files into smaller files, without extracting?

    Use the split command to break them up into pieces.

    Code:
    split -d --bytes=104857600 file.rar
    This would break each file up into pieces of 104857600 bytes each (1024 bytes/kilobyte * 1024 kilobytes/megabyte * 100 megabytes = 104857600 bytes) called file.rar.001, file.rar.002, etc. This naming pattern is specified by the -d switch.

    To join them later after the fact:

    Code:
    cat < file.rar.*
    Hope this helps!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •