I want to concatenate two files, i.e. staticEntries.dic and dynamicEntries.dic. As the names might show, the content of staticEntries.dic stays the same over time (contains common words), but to the contrary, dynamicEntries.dic might change over time (contains abbreviations that are extracted from DB). In my editor, I want to provide a mydict.dic, which contains the content of both files. I could do that via Shell, of course, but then I would have to replace the dynamicEntries.dic stuff from the mydict.dic file before concatenating a new version of dynamicEntries.dic to my resulting mydict.dic. -> I would like to create a mydict.dic file that contains a command to concatenate the two other files, but I don't know how to do that. Since it is not executed or called by my editor (I guess), I can't use bash commands.
Subsequently a simple example:
Content of staticEntries.dic
house dog horse
Content of dynamicEntries.dic. This content is generated based upon a database, so it changes over time.
EGB38 PD UH7ZT
Pursued content of mydict.dic
house dog horse EGB38 PD UH7ZT
If I do that combination via shell, I have a problem if a new version of the file dynamicEntries.dic is generated: how to avoid duplicate entries in the mydict.dic file? So I would like to put the concatenation command in a file and reference it as a normal file I can provide as dictionary file to my editor. I don't know whether this is possible or if I have to apply another approach.