Append new strings to an existing file

xgettext

  • Extract gettext strings from code files.
    More information: <https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

xgettext --join-existing --output {{path/to/output_file}} {{path/to/input_file}}

click the source code to copy install xgettext on any operating system with command-not-found.com