User Tools

Site Tools


linux:splitfile

Split&&Concat file

For txt files, you can split a file by the dedicated lines:

split -l 300 large_file.txt new_file_prefix

For bin files, you can split a file by the dedicated size:

split -b 10m large_file.bin new_file_prefix

And the you can use cat to concat the small files:

cat small_files* > large_file

This command is really powerful and convenience, because the network cloud disk doesn't support upload a huge file, so you can split it and then upload.

/var/www/dokuwiki/wiki/data/pages/linux/splitfile.txt · Last modified: 2016/05/05 13:07 (external edit)