Skip to content

Instantly share code, notes, and snippets.

@umidjons
Created January 13, 2014 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save umidjons/8395466 to your computer and use it in GitHub Desktop.
Save umidjons/8395466 to your computer and use it in GitHub Desktop.
Split the file into 50 MB pieces with the given prefix
# 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