Go Back  PPRuNe Forums > Misc. Forums > Computer/Internet Issues & Troubleshooting
Reload this Page >

Is there an elegant and quick technical solution to this?

Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Is there an elegant and quick technical solution to this?

Thread Tools
 
Search this Thread
 
Old 12th Jan 2007, 09:13
  #1 (permalink)  
Red On, Green On
Thread Starter
 
Join Date: May 2004
Location: Between the woods and the water
Age: 24
Posts: 6,487
Likes: 0
Received 2 Likes on 2 Posts
Is there an elegant and quick technical solution to this?

I have two lists of company names, list A is about 800 long, and list B (which contains all of list A plus further names) is 1100 long. They are in txt form, and in alphabetical order.

Can anyone devise a tidy way of making a list that represents B minus A? I have Excel, Word, Access and a pencil at my disposal!
airborne_artist is offline  
Old 12th Jan 2007, 12:15
  #2 (permalink)  
Spoon PPRuNerist & Mad Inistrator
 
Join Date: Sep 2003
Location: Twickenham, home of rugby
Posts: 7,395
Received 259 Likes on 171 Posts
Have a look at GNU Textutils.

I use it a fair amount - it is the dog's undercarriage thingies! And being GNU it is FREE!

SD
Saab Dastard is offline  
Old 12th Jan 2007, 12:48
  #3 (permalink)  
 
Join Date: Apr 2002
Location: Deepest Oxfordshire
Posts: 230
Likes: 0
Received 0 Likes on 0 Posts
AA
I would use Access mate (I'm assuming that you know the basics here). Import the two lists into separate tables, then create a new query which contains the company name fields from both lists. Create a relationship in the query design grid between the name fields of tables A and B using type 'Include all records from B and only those records from A where the joined fields are equal '. In the 'criteria' field under the company name field from B specify 'Is Null'.

Then simply run your query. The results displayed will be those records that exist in list B that do not exist in list A.

The beauty of this method is that as long as you save the query, and even if you subsequently update either or both lists (within Access, either directly or by importing the revised info) then it will still work as advertised.

Sounds complicated, but in practice should take no longer than a few mins.

Gadget

Feel free to PM me if you would like any more help.
Captain Gadget is offline  
Old 12th Jan 2007, 16:13
  #4 (permalink)  

Plastic PPRuNer
 
Join Date: Sep 2000
Location: Cape Town
Posts: 1,898
Received 0 Likes on 0 Posts
Have a look here - http://www.thefreecountry.com/progra...mparison.shtml

WinMerge - http://winmerge.org/ - is pretty good(and free).

Mac the Knife is offline  
Old 12th Jan 2007, 16:17
  #5 (permalink)  
 
Join Date: Jun 2003
Location: EuroGA.org
Posts: 13,787
Likes: 0
Received 0 Likes on 0 Posts
I have a DOS command line utility, written in the 1980s, which removes duplicate lines from a CRLF-separated text file. There is no upper limit on the file size. Email me if this is of interest.
IO540 is offline  
Old 12th Jan 2007, 16:58
  #6 (permalink)  
Per Ardua ad Astraeus
 
Join Date: Mar 2000
Location: UK
Posts: 18,579
Likes: 0
Received 0 Likes on 0 Posts
A quick look at 'WinMerge' seems to show well. May be worth stickying in at the top, SD?
BOAC is offline  
Old 12th Jan 2007, 17:08
  #7 (permalink)  

Plastic PPRuNer
 
Join Date: Sep 2000
Location: Cape Town
Posts: 1,898
Received 0 Likes on 0 Posts
Also DiffUtils for Windows (free) - http://gnuwin32.sourceforge.net/packages/diffutils.htm -if you can cope with the command line (not difficult).

Very fast.
Mac the Knife is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.