Read the data from the second file into a hash ($hash{$firstcolumn} = $thirdcolumn). Then go through the first file line by line, split the columns and replace the second column with $hash{$secondcolumn} before you join and print the line out again.
In reply to Re: Replace data in the column of one file with corresponding ones in another file
by Anonyrnous Monk
in thread Replace data in the column of one file with corresponding ones in another file
by Renyulb28
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |