finding data from two different files.

Jim Gibson jimsgibson at gmail.com
Fri Oct 18 18:54:44 EDT 2013


In article <mailman.1193.1382062311.18130.python-list at python.org>,
<"torque.india at gmail.com"> wrote:

> Hi all,
> 
> I am new to python, just was looking for logic to understand to write code in
> the below scenario.
> 
> I am having a file (filea) with multiple columns, and another file(fileb)
> with again multiple columns, but say i want to use column2 of fileb as a
> search expression to search for similar value in column3 of filea. and print
> it with value of rows of filea.
> 
> filea:
> a 1 ab
> b 2 bc
> d 3 de
> e 4 ef
> .
> .
> .
> 
> fileb
> z ab 24
> y bc 85
> x ef 123
> w de 33 
> 
> Regards../ omps

Interestingly, somebody named "Om Prakash Singh" asked the identical
question on the perl beginners list, except with the word "perl"
substituted for "python". Is this a homework problem? Are you unsure
about which language to use? Are you comparison shopping?

-- 
Jim Gibson



More information about the Python-list mailing list