i am aware of this doable by sed but only limited to one string let me explain let better, lets say in file 1 we got something like this
tom,123456789
steve,1478321
jon,315457
and in the second file file
tania,148321
john,123456789
so if a string in the second file matches the value in the first it will replace the value in the first file. Note i stink in programming i know this is prrettyy much doable via python or something but im clueless in them
awk
. Read the second file into an array whose keys are the strings you want to match. Then when reading the first file, check if there's a matching array element and perform the replacement.