Find Jobs
Hire Freelancers

2 Similar Python Scripts

$30-100 USD

I përfunduar
Postuar over 12 years ago

$30-100 USD

Paguhet në dorëzim
First script compares 2 text files, [login to view URL] and [login to view URL] . File1 contains a list of phrases (1 phrase per line, phrase can be any number of words). File2 contains a list of words or phrases (1 phrase per line). The .py Python script should compare the phrases in [login to view URL] to phrases in file1.txt. The script must REMOVE any lines from [login to view URL] which contain any exact word/phrase in file2.txt. E.g. [login to view URL], 'text' stands for random text text text word1 text word2 text text text word3 word4 text text text word5 text [login to view URL] dog text text cat fish text text bread word4 word2 egg very excellent word5 The output file would be text text word1 text text text word3 text word5 text Since word2, word4 appear in file2.txt. Note that the match must be exact for it to be removed from the [login to view URL] . For example, although word5 appears in [login to view URL], it is in the form 'very excellent word5' , and since 'very excellent word5' does not appear in [login to view URL], it is not removed from file1.txt. If no words/phrases are in [login to view URL] which are in [login to view URL], then the output is the same as [login to view URL] . ------ Second script will compare [login to view URL] and [login to view URL], but this time, the output file would output lines from [login to view URL] which contain exact word/phrases from [login to view URL], rather than deleting them. So the output from the above example is: text word2 word4 text text Basically the inverse output of the first script. Instead of deleting those words from [login to view URL] and outputting that, instead it outputs the words that it would have deleted in the first script. ------ I hope I have explained this well enough, it's not as complicated as it sounds.
ID e Projektit: 2705737

Rreth projektit

2 propozime
Projekt në distancë
Aktive 12 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
See private message.
$10 USD në 14 ditë
5,0 (1 review)
0,0
0,0
2 profesionistët e pavarur ofrojnë mesatarisht $26 USD oferta për këtë punë
Avatari i Përdoruesit
See private message.
$42,50 USD në 14 ditë
5,0 (23 përshtypje)
4,6
4,6

Rreth klientit

Flamuri i UNITED KINGDOM
Wales, United Kingdom
5,0
14
Mënyra e pagesës u verifikua
Anëtar që nga gush 26, 2012

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.