exchanging numbers in two text files

April 20, 2011 at 04:08:16
Specs: Windows XP
I have two text files. Original.txt and master.txt. Each file has two columns.
Each file has a number (first column) and a description after it (second column), separated by a tab. I need to find the number in the first file, match it with the same number in the second text file and replace the description (second column) with the matching description in the second file.
Example: Master.txt
111111 big blue planet
222222 green marble
333333 LARGE CAT

Second text file: Original.txt
111111 big blue planet
222222 green marble
333333 LARGE DOG

would become: Original.txt
111111 big blue planet
222222 green marble
333333 LARGE CAT

Has to be a batch, no downloads, no choice. The numbers are always random (EXAMPLE: 2536545) and a list of 100 or more at times.

I have tried everything I can think of, except whatever works.


See More: exchanging numbers in two text files

Report •

#1
April 21, 2011 at 05:00:29
Anyone able to help on this one?

Report •
Related Solutions


Ask Question