I have a text (configuration) file, but the program that reads the file unfortunately doesn't allow using any kind of variables. So I'd like to use a preprocessor that replaces a set of placeholders in the config file before passing it to the program.I can define the format of the variables any way I want (e.g. SOME_DIR). If I had just a few variables, I would probably use sed:sed  -e s*SOME_DIR*$SOME_DIR*g  my.conf | target_progBut the list of variables is pretty long, and it should be easy to configure - so I'd prefer to put the variables in a properties file likeSOME_DIR=...OTHER_DIR=......and then callsome_replace_tool  my.properties  my.conf  | target_progI'm looking for some_replace_tool. Any ideas?
How to replace a list of placeholders in a text file?
text processing;search;replace