I would like to create a shell script that takes a list from FILE_A and uses it as the input for a sed command that does an edit in FILE_B.
is there some way to grep each and every line of FILE_A and pass each line to sed to edit FO:E_B (or create a FILE_C' which would be safer)?
for example FILE_A conains a list of files:
FILE_B contains a bunch of information but will also have the references to files listed in FILE_A
blah blah this
blah blah that
blah blah blah
what I am basically looking for is a way to do:
sed 'a/<junk from FILE_A/<replace with edited junk from FILE_A>/g' FILE_B