Created
January 13, 2014 06:13
-
-
Save umidjons/8395466 to your computer and use it in GitHub Desktop.
Split the file into 50 MB pieces with the given prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# split into chunks: | |
$ split --bytes=50M logdata part_ | |
$ ls -lh | |
total 204M | |
-rw------- 1 sathiya sathiya 102M Jul 25 18:47 logdata | |
-rw------- 1 sathiya sathiya 50M Jul 25 19:23 part_aa | |
-rw------- 1 sathiya sathiya 50M Jul 25 19:23 part_ab | |
-rw------- 1 sathiya sathiya 1.6M Jul 25 19:23 part_ac | |
# join chunks into file: | |
$ cat part_* > logdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment