linux poison RSS
linux poison Email

Splitting and Joining multiple files with lxsplit

lxSplit is a simple tool for splitting files and joining the spitted files on UNIX-like platforms, such as Linux, FreeBSD, OpenBSD, etc. It is fully compatible with the HJSplit utility which is available for other operating systems. Splitting is done without compression.

OpenSuSe user can install lxSplit using "1-click" installer - here

Using lxSplit:
lxSplit splits and merges files with the -s and -j flags respectively.

To split a big file into smaller pieces of 15 MB each, run the following command:
lxsplit -s hugefile.bin 15M
Output size can be given in (M)egabytes, (k)ilobytes and (b)ytes.

To merge (join) the already split pieces into the original big file, run this command:
lxsplit -j smallfiles.bin.001
All resulting files (from either splitting or joining) will be placed in the current directory.

Note: Same thing can be done using 'split'  (to split the files) and 'cat' command (to join the files) -- here


Post a Comment

Related Posts with Thumbnails