ddrew78 has asked for the wisdom of the Perl Monks concerning the following question:
file13abc-def 2000 abc-def 2007
file8abc-def 3 abc-def 95 abc-def 1300 abc-def 2000 abc-def 2001 abc-def 2002
file11abc-def 2000 sometext abc-def 2000 sometext abc-def 2007 sometext abc-def 2007 sometext
What I need to do is find duplicate entries between file6 and file13 (already done, shown in file11), and replace that number in file8 with a number from a pre-defined range that is not used in file13. I'm not sure if I even need to pull the duplicate numbers into a separate file or not. Also, the 'abc-def' string does stay the same in all files.abc-def 2000
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replace data based on duplicate in another file
by moritz (Cardinal) on Apr 03, 2009 at 14:11 UTC | |
|
Re: replace data based on duplicate in another file
by lakshmananindia (Chaplain) on Apr 03, 2009 at 14:08 UTC | |
|
Re: replace data based on duplicate in another file
by apl (Monsignor) on Apr 03, 2009 at 16:15 UTC |