Efficient grep using Python?

sf sf at sf.sf
Wed Dec 15 10:55:43 EST 2004
Just started thinking about learning python.

Is there any place where I can get some free examples, especially for
following kind of problem ( it must be trivial for those using python)

I have files A, and B each containing say 100,000 lines (each line=one
string without any space)

I want to do

"  A  - (A intersection B)  "

Essentially, want to do efficient grep, i..e from A remove those lines which
are also present in file B.





More information about the Python-list mailing list