I have a file with two columns of alpha numeric strings, I need to replace in another file all the appearances of any string in column A with the correspondent string in column B, I tried this but it is not working:
for i in `awk '{print $1}' test_file`; do for j in `awk '{print $2}' test_file`; do sed 's/$i/$j/g' test_file1 > test_file2; done; done
as a test if I do this:
for i in `awk '{print $1}' test_file`; do for j in `awk '{print $2}' test_file`; do echo $i:$j; done; done
I got the list of strings correctly, but the replacement doesn't work