Replacing data from one file with data from another file

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Replacing data from one file with data from another file

Postby stobin » Fri Jan 04, 2013 6:50 pm

I have two files that contain old addresses and want to replace them with the new addresses from the second file. Does anyone know if this is possible to achieve? Your help is appreciated. Thank you.
stobin
Newbie
 
Posts: 2
Joined: Fri Jan 04, 2013 6:47 pm

Re: Replacing data from one file with data from another file

Postby Mofi » Sat Jan 05, 2013 5:11 am

User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Replacing data from one file with data from another file

Postby stobin » Mon Jan 07, 2013 12:31 pm

Mofi, Hi, I am not sure this is exactly what I need. The exact scenario is that that these two files have multiple fields. The ones I am interest in are the account number and the address fields. What I need to be able to do is say, for example:

if the account number in file one, is also in file two, then replace the address for the account in file one with the address from file two. Is this possible?
Thanks,
stobin
Newbie
 
Posts: 2
Joined: Fri Jan 04, 2013 6:47 pm

Re: Replacing data from one file with data from another file

Postby Mofi » Tue Jan 08, 2013 1:40 am

stobin wrote:Is this possible?

Yes, it is. The easiest method is using a script (or macro) to run a tagged regular expression Replace on account data base file for every data listed in the file with the new address data.

But without exact data snippets best posted within BBCode tags [code]...[/code] showing

  • what the accounts data base file contains before script execution
  • what the file with the new address data contains before script execution
  • what the accounts data base file should contain after script execution based on example data
it is impossible for us to adapt one of the scripts to your requirements and post its code here so that you can simply use it to do the job.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to UltraEdit General Discussion