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!

copare first field from two files and create new

Status
Not open for further replies.

tonivm

Technical User
Mar 2, 2006
64
ES
Hi everybody:
Could anybody tell me how can I compare two files (the first field) and create a new file with the common lines?
Thanks in advance and cheers for everybody.
:)
 
Thanks for your reply feherke:
But does not work correctly. I suppossed that I did not explain it well.
I've two files where these two file firstly only they have the first equal, so I'd like to create another one with this common field with the other.
Thanks again.
 
Hi

I used this test data :

[tt]+-first--+ +-second-+ +-result-+
| 1 | | 1 | | 1 |
| 2 | | 3 | | 3 |
| 3 | | 5 | | 5 |
| 4 | | 7 | +--------+
| 5 | | 9 |
+--------+ +--------+[/tt]

Better show a sample of what you want.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top