Evaluate a command, printing the output to stdout, and then quit

emacsclient

  • Open files in an existing Emacs server.
    See also `emacs`.
    More information: <https://www.emacswiki.org/emacs/EmacsClient>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

emacsclient --eval '({{command}})'

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