how split and join file with lxsplit in ubuntu ?

I already explain to you how to join some files in my article before. now I have to describe how to join and split some files using lxsplit.

first, we have to install lxsplit by using command :

#sudo apt-get install lxsplit

then, we ready to use lxsplit.

if we want to split file in chunks of some size, we can use command :

#lxsplit -s file.rar  50M

Splitting file.rar into 2 pieces.
file.rar.001 52428800 bytes
file.rar.002 18390810 bytes
Done!

it’s mean, I will split the file into 2 pieces with 50 MB per pieces.

if we want to join some files, we can use command :

#lxsplit -j file.rar.001

Creating merged file `file.rar’.

Complete size: 70819610 in 2 files.

Processing file `file.rar.001′ …

Processing file `file.rar.002′ …

Done!

it’s mean, I will join the 2 files into 1 file.

resource : split and join files in ubuntu with lxsplit

Explore posts in the same categories: LINUX, Uncategorized

2 Comments on “how split and join file with lxsplit in ubuntu ?”

  1. esi Says:

    Nice, alas, if you apply it to flv files, after the first chunk the rest become corrupted. Any ideas to split flv files? Cheers

    • babeyudi Says:

      if you want to split flv file you can’t use lxsplit. so you can used ffmpeg. i give you examples :

      fisrt thing you have to installed ffmpeg using
      #sudo apt-get install ffmpeg
      then use ffmpeg to split into one piece of file
      #ffmpeg -i test.flv -ss 00:00:00 -t 00:02:02 -vcodec copy -acodec copy newtest.flv
      that command below mean that you split file into two minute and 2 seconds long.
      i hope this can help you. if you want more please read ffmpeg documentation.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.