Delete all occurrences of the specified set of characters from the input

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>

tr -d '{{input_characters}}' < {{filename}}

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