1833875 Members
3131 Online
110063 Solutions
New Discussion

combining two file.

 
SOLVED
Go to solution
rveri
Super Advisor

combining two file.

Hi All ,

I have two file , file1 and file2 ASCII text file.

file1= 20 lines.
file2= 30 lines.

I want to combine the two file , one after another.

How I can do that.

Thanks
Veri.
4 REPLIES 4
Alan Meyer_4
Respected Contributor
Solution

Re: combining two file.

cat file1 file2 > file3

or

cat file2 >> file1
" I may not be certified, but I am certifiable... "
Sandman!
Honored Contributor

Re: combining two file.

cat is your best choice for appending one file to another. man cat

regards!
Raj D.
Honored Contributor

Re: combining two file.

# cat file1 file2 > file3
# cat file3 ( you can find 50 lines )

Cheers,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
rveri
Super Advisor

Re: combining two file.

Thanks , Its very easy .. I was strugling with paste command.

thanks all.