Friday, October 9, 2009

Split files.

Had to split a .tar.gz (a 5GB file) as scp quits at the 5GB limit for some reason. Anyways, here's the one liner splitting I found.

split the file into 500MB chunks with:

nohup nice split --line-bytes=500m foo.tar.gz foo_ &

rejoined the file with:

nohup nice cat foo_a* > foo_FULL.tar.gz &

Actually found the reason, it seems you can't write a 5GB file to a vfat.

No comments:

Post a Comment