Replace all occurrences of a character from another command's output

tr

  • Translate characters: run replacements based on single characters and character sets.
    More information: <https://www.gnu.org/software/coreutils/tr>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

echo {{text}} | tr {{find_character}} {{replace_character}}

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