Preview results of a find and replace without updating the target files

ned

  • Is like `grep` but with powerful replace capabilities.
    Unlike `sed`, as it isn't restricted to line oriented editing.
    More information: <https://github.com/nevdelap/ned>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ned '{{^[sb]ad}}' --replace '{{happy}}' --stdout {{.}}

click the source code to copy