13
3
Say I have two files. file1.txt and file2.txt
Both files contains a list of shoe brands name (1000+ names), like this:
brand1 brand2 brand3 brand...
Now - I want to compare file1 to file2, delete all the reoccurring entries and only show me Whats in files1 that's not in file2 and vice versa.
The goal in other words is to see what's not in the opposite file since these entries is going to be typed manually into a product backoffice for two different categories so that they'll match/be the same in the end.
would a different tool be suitable? You could do this easily in a few lines of python, for example (read each brand from each file and save into a set, then print the set) – Baldrickk – 2020-02-25T15:58:25.127
2IMO this would be far easier to accomplish in Excel if you can copy all your data into it or save the TXTs as CSVs. It can easily sort, remove duplicates and I'm sure column comparison would not be hard to accomplish either. – Karan – 2013-03-07T20:08:10.390
The following link may be useful:
http://superuser.com/a/290445