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
This might work for you (GNU sed):
sed '/./!d;s/\([^ ]*\) *\(.*\)/\\|\1|s||\2|g/' dict.txt | sed -f - user.txt