Python Forum
Matching two files based on a spited elements
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Matching two files based on a spited elements
#3
Thanks Larz60+ !
It still does not work.
hers is what it prints out:
 Fund matched- -\\D1376\d$\logs\BBLog.100.xml,05/13/2021 00:01:23
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.100.xml,05/13/2021 00:01:23
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.100.xml,05/13/2021 00:01:23
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.100.xml,05/13/2021 00:01:23
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.11.xml,05/27/2021 15:11:03
 Fund matched- -\\D1376\d$\logs\BBLog.11.xml,05/27/2021 15:11:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.11.xml,05/27/2021 15:11:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.11.xml,05/27/2021 15:11:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.1.xml,05/28/2021 17:02:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.1.xml,05/28/2021 17:02:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.1.xml,05/28/2021 17:02:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.1.xml,05/28/2021 17:02:03
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.10.xml,05/27/2021 15:22:15
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.10.xml,05/27/2021 15:22:15
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.10.xml,05/27/2021 15:22:15
 Not -------------------Matched ++ \\D1376\d$\logs\BBLog.10.xml,05/27/2021 15:22:15
I need to get only lines from File-1 that is not in Files-2, see below
\\D1376\d$\logs\BBLog.1.xml,05/28/2021 17:02:03
\\D1376\d$\logs\BBLog.10.xml,05/27/2021 15:22:15
Reply


Messages In This Thread
RE: Matching two files based on a spited elements - by tester_V - May-30-2021, 06:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy Paste excel files based on the first letters of the file name Viento 2 480 Feb-07-2024, 12:24 PM
Last Post: Viento
  unable to remove all elements from list based on a condition sg_python 3 487 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Move Files based on partial Match mohamedsalih12 2 868 Sep-20-2023, 07:38 PM
Last Post: snippsat
  Making a question answering chatbot based on the files I upload into python. Joejones 1 1,286 May-19-2023, 03:09 PM
Last Post: deanhystad
  ValueError: Length mismatch: Expected axis has 8 elements, new values have 1 elements ilknurg 1 5,229 May-17-2022, 11:38 AM
Last Post: Larz60+
  Replace elements of array with elements from another array based on a third array Cola_Reb 6 1,962 May-13-2022, 06:06 PM
Last Post: deanhystad
Question Change elements of array based on position of input data Cola_Reb 6 2,186 May-13-2022, 12:57 PM
Last Post: Cola_Reb
  select Eof extension files based on text list of filenames with if condition RolanRoll 1 1,555 Apr-04-2022, 09:29 PM
Last Post: Larz60+
  Finding files matching pattern GrahamL 1 1,326 Jan-14-2022, 01:16 PM
Last Post: DeaD_EyE
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,563 Dec-18-2021, 09:32 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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