I am looking for a way to remove all duplicate lines from a text file. If there are 2 or more of the same line I want both/all removed so that the final text file will just have the totally unique lines left.
As a bit of background to what we are doing:
We import images and data relating to the images into a database.
We then import some different data into the same database that, using some reference numbers, is matched with the 1st set of data.
We export the amalgamated data and send it to another company.
Each week we import more of both set of data.
Each week we export this data, but only need to send the "new" data to the other company.
Not all data from week n will be exported in week n.
I am currently running a find & replace (using Useful File Utilities) using week 1 export against week 2 export to see if it will actually work - we have 100,000+ lines to find & replace on(increasing each week).
I suppose the question is, if I merge week 1 and week 2 text files and sort into order, is there software/script that will copy totally unique lines to a new text file?
A backdoor by its very definition is baked in at the back (driver level) of the hardware or software making it impossible to bypass without crippling the actual functionality of the product. Nvidia already does something like this in China with their D cards. The 5090D features the exact same die as the original 5090 but its neutered at the driver level and, try as they might, China can't do anything about it.
Question
metallithrax
Hi folks,
I am looking for a way to remove all duplicate lines from a text file. If there are 2 or more of the same line I want both/all removed so that the final text file will just have the totally unique lines left.
As a bit of background to what we are doing:
We import images and data relating to the images into a database.
We then import some different data into the same database that, using some reference numbers, is matched with the 1st set of data.
We export the amalgamated data and send it to another company.
Each week we import more of both set of data.
Each week we export this data, but only need to send the "new" data to the other company.
Not all data from week n will be exported in week n.
I am currently running a find & replace (using Useful File Utilities) using week 1 export against week 2 export to see if it will actually work - we have 100,000+ lines to find & replace on(increasing each week).
I suppose the question is, if I merge week 1 and week 2 text files and sort into order, is there software/script that will copy totally unique lines to a new text file?
Thanks in advance for any help.
Link to comment
https://www.neowin.net/forum/topic/1355542-remove-all-duplicates-from-text-files-only-leave-unique-lines/Share on other sites
2 answers to this question
Recommended Posts