---

Split and merge files from the command line

[ Thanks to linuxaria for this link. ]

Although some file archivers offer us the option of
split the files, this can be easily accomplished with two commands:
split and cat.

split just needs the size of the parts that we want to create,
and the file that we want to split, e.g.:

split -b 1024 file_to_split.bin

If this file is 6 kibibytes long, it will create 6 files of 1
kibibyte each, named xaa, xab, xac, xad, xae and xaf.


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis