Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to merge files from splitting

Status
Not open for further replies.

hokky

Technical User
Nov 9, 2006
170
AU
Hi guys,

quick question about merging

I have split my data into 1KB/piece and I want to merge it back as original.

How do I do that ?

Here's the command I merge
Code:
split -b1000 data.tar.gz -a3 data.tar.gz

Thanks guys

 
have never used split myself, but I would bet you could:

merge <options> new_file old_file1 old_file2

or something very similar.
 
Doh! :~/ didnt even think about "cat". There is (at least according to google) a merge command.

...

you can do this too:

Code:
cat old_file1 >> old_file2

downside to the above - you no longer have the "original" old_file2.
 
Never post before coffee...

above should be

Code:
cat old_file2 >> old_file1

otherwise files are appended in the wrong order (unless of course you really want that. :-> )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top