in reply to Populating data from one file to another file
Then, as you read through file 1, use a regex to match and capture the digits at the end of each line. If there's a hash element with that digit string as the hash key, replace the digits at the end of the line with the corresponding hash value, and print the result to a new file (or to STDOUT, and redirect that to a file).
Have you written any perl code for this yet? If not, now's the time to try.
(updated to fix second paragraph)
|
|---|