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 out from outside Python (in Windows) the current version of Python? pstein 5 975 Yesterday, 07:02 AM
Last Post: Samuel34
  recurring events every specific amount of days jacksfrustration 6 242 Jun-27-2024, 01:13 PM
Last Post: deanhystad
  how to find difference between fake driving license or real using python? pjaymn 5 2,957 Jun-14-2024, 07:01 AM
Last Post: Pedroski55
  How to compare specific elements of a TSV in difflib gonksoup 1 228 Jun-08-2024, 02:05 PM
Last Post: Gribouillis
  Schedule exit a program at a specific time 4 am every day. chubbychub 3 414 May-17-2024, 03:45 PM
Last Post: chubbychub
  Regex to find triple characters bfallert 14 753 May-16-2024, 04:02 PM
Last Post: xMaxrayx
  Writing a cycle to find the nearest point from the array Tysrusko 0 267 May-10-2024, 11:49 AM
Last Post: Tysrusko
Question Right way to open files with different encodings? Winfried 2 472 Apr-23-2024, 05:50 PM
Last Post: snippsat
  Open files in an existing window instead of new Kostov 2 542 Apr-13-2024, 07:22 AM
Last Post: Kostov
  delete specific row of entries jacksfrustration 3 561 Feb-13-2024, 11:13 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