Replace for an exact string without prompt for a confirmation, printing changed files

fastmod

  • A fast partial replacement for the codemod tool, replace and replace all in the whole codebase.
    Regexes are matched by Rust regex crate.
    More information: <https://github.com/facebookincubator/fastmod>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

fastmod --accept-all --print-changed-files --fixed-strings {{exact_string}} {{replacement}}

click the source code to copy