Pages

Thursday, January 6, 2011

Split/Combine files on Mac/Windows:

Mac Terminal Command to split a large file:

split –b2047m <inputfilename>

(could not find split equivalent on windows)

This will generate smaller filenames starting with the letter x and two appended sorted characters, eg: xaa, xab, xac, etc. The original file is left intact.

Command to combine 2 or more files:

To put the files back together on Mac simply type the following command in the Mac terminal.
cat x* > newfilename

To put the files back together on Windows simply type the following command in the DOS command prompt.

copy /b x* one.txt

copy /b 1.txt +2.txt +3.txt one.txt

No comments:

Post a Comment

Loading