I have a large (>1000 line) file consisting of two columns, and I need to process other files to change occurrences in the first column to that of the second column.
Is there a way to get sed to automatically run through each element in the first column and change them to the second, without manually typing out a sed command with s/../../g for each one of the synonyms table?
I could loop through each line in the synonyms table and automatically populate a sed command per (synonyms) line per file, but this is possibly inefficient.