Operating System - Tru64 Unix
1834818 Members
2611 Online
110070 Solutions
New Discussion

How to put togethe files (split)

 
Danny Trieu
New Member

How to put togethe files (split)

Hi there,

I slitted a big file to several smaller one by using the command "split"
And now I need to put together the files the orginal. Is that any command to do it?

Please advice!
Cheers
2 REPLIES 2
Peter Leddy_1
Esteemed Contributor

Re: How to put togethe files (split)

Hi Danny,

You could do the following, saw you have 3 files and want to merge the 3 back into a file called newfile then this command would do it for you.

cat file1 file2 file3 >> newfile

HTH,

Peter
Johan Brusche
Honored Contributor

Re: How to put togethe files (split)


Suppose you did:

cd /tmp
split /vmunix splt.

Then reconstructing vmunix can be done as below:

for i in split.*
>do
>cat $i >> vmunix
>done

Johan.

_JB_