Do both a find-and-replace and a rename operation at the same time, using a pattern file

repren

  • Multi-pattern string replacement and file renaming tool.
    More information: <https://github.com/jlevy/repren>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

repren --patterns {{path/to/patfile.ext}} --full {{*.txt}}

click the source code to copy