79759 find matches in txt file

I have two txt files (1+2) 1) contains a list of words 2) contains also list of words 1 is allways the same content. 2 changes daily A) I need to have a perl or similar script that will check if a word in file 2 exactly matches a word in file 1. If a word matches it should be written to file 3. B) same as A but it has to combine words i.e. script has to check if a word in file 2 is the same as two combined words from file 1. Matches to be written in file 4 If possible one should be able to define an extension that is not checked during the compare of file 2. For example: list 2 can have words like "[url removed, login to view]" then the function should ignore the ".22" - it should be possible to define such extensions to be ignored. List 2 can be with separated words "word-word". It can be a perl script or an access dbase. Please excuse my english. Hope one can unserstand what I need. Thanks

Kemahiran: Semua Boleh, Perl

Lihat lagi: need to find a word, matches list, list matches, find perl, txt, find my, word find function, perl script file, word extension, check compare, find file, dbase file, word txt, find matches files, compare access, check file, compare files perl script, compare files perl, script compare files perl, perl script compare files

Tentang Majikan:
( 5 ulasan )

ID Projek: #1826823

Dianugerahkan kepada:


Case A is piece of cake. For case B you need very good performance for such amounts of data (for 1000 words we have 1 million combinations - perl could not handle that). I propose C++ for Windows 95/98/NT/etc. You'll g Lagi

$70 USD dalam 4 hari
(0 Ulasan)