linux:splitfile
This is an old revision of the document!
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 disk doesn't support upload a huge file, so you can split it and then upload.
/var/www/dokuwiki/wiki/data/attic/linux/splitfile.1384155684.txt.gz · Last modified: 2016/05/05 13:06 (external edit)