Python Forum
Find specific subdir, open files and find specific lines that are missing from a file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find specific subdir, open files and find specific lines that are missing from a file
#5
I beleive that the proper way to parse the file (and using the matching suggested) would be with readlines.
Only line by line can tell you if the expression does *not* exist on a given line.
Not familiar enough with re.search to know if defaults to line-by-line.




`
Reply


Messages In This Thread
RE: Find specific subdir, open files and find specific lines that are missing from a file - by millpond - Aug-24-2020, 06:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to find difference between fake driving license or real using python? pjaymn 5 2,921 Jun-14-2024, 07:01 AM
Last Post: Pedroski55
  How to compare specific elements of a TSV in difflib gonksoup 1 218 Jun-08-2024, 02:05 PM
Last Post: Gribouillis
  Schedule exit a program at a specific time 4 am every day. chubbychub 3 404 May-17-2024, 03:45 PM
Last Post: chubbychub
  Regex to find triple characters bfallert 14 741 May-16-2024, 04:02 PM
Last Post: xMaxrayx
  Writing a cycle to find the nearest point from the array Tysrusko 0 261 May-10-2024, 11:49 AM
Last Post: Tysrusko
Question Right way to open files with different encodings? Winfried 2 456 Apr-23-2024, 05:50 PM
Last Post: snippsat
  Open files in an existing window instead of new Kostov 2 533 Apr-13-2024, 07:22 AM
Last Post: Kostov
  delete specific row of entries jacksfrustration 3 556 Feb-13-2024, 11:13 PM
Last Post: deanhystad
  Extracting specific file from an archive tester_V 4 702 Jan-29-2024, 06:41 PM
Last Post: tester_V
  Open/save file on Android frohr 0 451 Jan-24-2024, 06:28 PM
Last Post: frohr

Forum Jump:

User Panel Messages

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