Tay Ray Chuan home archive

file splitting and combining on Unix

Tue, 14 Jun 2011 16:50:01 +0800 | Filed under unix, recipe

From Wikipedia's entry on split, here's a quick way to split a file into 2 on a Unix-y system:

# on source machine
$ split -n 2 myfile
# on target machine
$ cat xaa xab > myfile
blog comments powered by Disqus