I want to combine two or more files in Linux, so I am using the following command:
cat small_file LARGE_File LARGER_FILE > SUM_OF_FILES
However this runs very slow.
Does anyone know a Linux tool that combines the files in the fastest time?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You could try a variation on the dd command, such as:
| ||||
feedback
|
|
I've found mmv (Mass Move and rename - Move, copy, append or link Multiple files using wildcard patterns.) from this useful bash reference. So you could do:
(note: mmv isn't installed by default, use | |||
|
feedback
|
|
Maybe
will do what you want? If you need LARGE_FILE to be unchanged
is better, but this will only be slightly faster than your original code. | |||
|
feedback
|