Replacing strings in a file from a def file

view full story

http://www.unix.com – I am sure that there is something out there but before I learn Perl I thought I would ask. Here is what I need: I need a script or program to substitute string values in an xml file from a pair definition file replace_string -d <file containing string pairs> original_file_in new_file_out The definition file is a text file with pairs dog cat elephant baby running the script on the original file would generate a new file where every occurrence of dog would be replaced by cat and elephant by baby and so on. Sorry if this is a stupid question, I am rusty. (HowTos)