Python Forum
Keyword compare in two files and output the results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyword compare in two files and output the results
#1
Hi,

I am new to Python and very beginner. Need help.

I would like to compare the keywords in the format of **_*** (common point in any keyword is _) in two files (one word doc and second notepad) and output the results like matched and unmatched list (of keywords).

The steps are like:
1. search the keyword like **_** in file1 (word doc)
2. compare the step 1 keyword with file2 (notepad)
3. Output the results like matched keyword list and unmatched keyword list.

Any help is highly appreciate!

Thank you...
Reply
#2
Hi! Hint: start with a script that simply prints all the words in file 1.
Reply
#3
what have you tried? we need to see your code (post it in code tags), include full traceback in error tags (if you get one) and ask specific questions.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 551 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  Find a specific keyword after another keyword and change the output sgtmcc 5 821 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  Compare 2 files tslavov 2 955 Feb-12-2023, 10:53 AM
Last Post: ibreeden
  merge two csv files into output.csv using Subprocess mg24 9 1,788 Dec-11-2022, 09:58 PM
Last Post: Larz60+
  Compare fields from two csv files georgebijum 3 1,371 Apr-25-2022, 11:16 PM
Last Post: Pedroski55
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,496 Dec-18-2021, 09:32 PM
Last Post: Larz60+
  Increment text files output and limit contains Kaminsky 1 3,202 Jan-30-2021, 06:58 PM
Last Post: bowlofred
  opening files and output of parsing leodavinci1990 4 2,539 Oct-12-2020, 06:52 AM
Last Post: bowlofred
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,237 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  How to append one function1 results to function2 results SriRajesh 5 3,164 Jan-02-2020, 12:11 PM
Last Post: Killertjuh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020