Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
keyword matching part2
#16
(Jan-01-2019, 04:58 AM)janho Wrote:
(Dec-31-2018, 05:19 PM)micseydel Wrote: I can't speak for others, but I have not been engaging with your thread because I couldn't make sense out of what you said. You've written a lot here and posted a lot of code, without providing what I would want to in turn provide help.

What is it that I want? I want minimal code that reproduces your issue - usually that's 5-10 lines, not close to 100; do your best to remove anything not relevant. I want a more explicit explanation of what your expected and actual results are, since it's not obvious what "wrong line no" means exactly. I want a full, though minimal, example that reproduces your issue, e.g. an example file structure (even creating a Github repo or uploading a zip somewhere might be appropriate in this case).

How can I upload sample notepad file which is having structure of output report in a text format.this report has line no. column so that after uploading t on this forum you will be able to understand what exactly i mean from wrong line no.
and if you focus on pasted code from line no. 70 to 85 that tries to write line no. in text file report but expectation is that for particular word let's say 'log' when it finds it in some place in disk drive d: in some folder and in some file and when we open this file in notepad++ then the corresponding line number for this searched keyword 'log' must be exactly same which should be written in our text format report using this python script which is pasted here for your reference.
If required can upload text file report which is having incorrect line number for the found keyword in particular file,but i am not sure how to upload that sample report(in text format) here on this forum.

Thanks
Reply


Messages In This Thread
Keyword matching - by janho - Dec-18-2018, 01:50 PM
RE: keyword matching part2 - by micseydel - Jan-02-2019, 11:04 PM
RE: Keyword matching - by buran - Dec-18-2018, 02:01 PM
RE: Keyword matching - by janho - Dec-21-2018, 04:02 AM
RE: Keyword matching - by micseydel - Dec-21-2018, 07:43 PM
RE: Keyword matching - by janho - Dec-25-2018, 10:38 AM
RE: Keyword matching - by janho - Dec-26-2018, 11:21 AM
RE: Keyword matching - by janho - Dec-27-2018, 11:00 AM
RE: Keyword matching - by janho - Dec-28-2018, 02:35 AM
RE: Keyword matching - by woooee - Dec-28-2018, 02:56 AM
RE: Keyword matching - by janho - Dec-28-2018, 01:07 PM
RE: Keyword matching - by janho - Dec-28-2018, 03:11 PM
RE: Keyword matching - by janho - Dec-31-2018, 04:27 AM
RE: Keyword matching - by janho - Dec-31-2018, 09:01 AM
RE: Keyword matching - by micseydel - Dec-31-2018, 05:19 PM
RE: Keyword matching - by janho - Jan-01-2019, 04:58 AM
RE: Keyword matching - by janho - Jan-01-2019, 06:55 AM
keyword matching part2 - by janho - Jan-01-2019, 12:35 PM
RE: Keyword matching - by janho - Jan-01-2019, 12:41 PM
RE: Keyword matching - by janho - Jan-02-2019, 05:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a specific keyword after another keyword and change the output sgtmcc 5 924 Oct-05-2023, 07:41 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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