Joining split files in linux via command line.

How does one join split files with extensions like ".001 .002 .003 .004…" back together into one file again?

Split files like these are likely made by Windows users using the QuickPar program, and as such linux users can rejoin them into the original file using command line options of the pararchive package. Using the following command par will see the split files as additional blocks and it will check, repair and concatenate (aka joining) the files into the single original file or files.

par2 r myfile.par2 myfile.*

An error that sometimes happens is that the par files are actually set to repair the split files instead of the original file. To concatenate those files into one use the following shell command with wildcards.

$ cat *.[0-9][0-9][0-9] >output.file

If the split files are not the only ones present in the directory use the following.

$ cat yourfile.file.[0-9][0-9][0-9] >yourfile.file

or

$ cat yourfile.file.??? >yourfile.file

Took a little research for me to figure out. Use your man files for more info.

jpd