LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-19-2004, 09:55 AM   #1
chunky
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
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
 
Old 05-19-2004, 10:42 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
How 'bout "paste":

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert DOS text files to UNIX text files ta0kira Linux - Software 7 03-15-2011 11:42 AM
Convert text files to html files lothario Linux - Software 3 09-27-2005 08:48 PM
Combining text files ebiven Linux - General 12 07-22-2004 11:13 AM
Joining *wmv files ? gazza Linux - Newbie 3 01-20-2004 12:48 PM
cat - joining files u02gtt Linux - Newbie 6 04-22-2002 08:49 AM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration