I'm trying to learn python :) and sorry if it is a really noob question. I tried to search but couldn't find exactly what i was looking for.
I'm trying to compare 2 files. but not just straight foward like this. I want something more precise
there will be more then 200 name entry and i need to extract new entries from file 2
let say file one has those entry:
some random text -Name: Item_01_01- some random text
some random text -Name: Thing_01_01- some random text
and file 2 has
some random text -Name: Item_01- some random text
some random text -Name: Thing_01- some random text
some random text -Name: Object_02- some random text
I want to do something that will compare the 2 files and extract the new item in file 2
so i want the info Object_02 appear in my output file
searching the info into -Name: XXXXX-
I know how to read file and write files in python, it the info i'm not sure how to get it.
And yes file 1 has more number at then ends of each items
I hope it's clear
(sorry English not my main language)
Thanks a lot in advance for help.