Split and merge files from the command line

Posted by linuxaria on Jul 21, 2011 2:03 AM EDT
http://www.linuxaria.com; By Linuxaria
Mail this story
Print this story

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

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, xaeand xaf.

Full Story

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.