Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as _) with the input line

xargs

  • Execute a command with piped arguments coming from another command, a file, etc.
    The input is treated as a single block of text and split into separate pieces on spaces, tabs, newlines and end-of-file.
    More information: <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}

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