I need to do something similar to this post (but with a twist). That is why I am asking.
unix shell: replace by dictionary
I have a dictionary(dict.txt). I
Usage: awk -f foo.awk dict.dat user.dat http://www.gnu.org/software/gawk/manual/html_node/String-Functions.html http://www.gnu.org/software/gawk/manual/html_node/Arrays.html
awk -f foo.awk dict.dat user.dat
NR == FNR { rep[$1] = $2 next } { for (key in rep) gsub(key, rep[key]) print }