hello,
Im looking for an alias that will act kind of like $replace($2,dog,cat,right,left...) but will read from a text file, so i dont have a $replace a mile long

Example of text file:
reads replace

dog cat
right left
up down


Can anyone help me?
Thanks