LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   joining text files. (https://www.linuxquestions.org/questions/programming-9/joining-text-files-183286/)

chunky 05-19-2004 09:55 AM

joining text files.
 
Hi,

I am writing a script that created two test files
tmp (file 1)
1,0001,0096
2,0001,0079
3,0001,0403

tmp1 (file 2)
0096,96
0079,175
0403,578

what I would like to do is to combine these two files together so that it look s like this.

File 3
1,0001,0096,96
2,0001,0079,175
3,0001,0403,578

I have tried the join command to do this but have not had any success.

Does any one know how to get this to work.

Any helpvery much appreciated

Chunkstar

paulsm4 05-19-2004 10:42 AM

How 'bout "paste":

paste x1 x2
1,0001,0096 0096,96
2,0001,0079 0079,175
3,0001,0403 0403,578


All times are GMT -5. The time now is 07:23 PM.