Do a find-and-replace on the contents of a directory of CSV files

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 --from '{{([0-9]+) example_string}}' --to '{{replacement_string \1}}' {{*.csv}}

click the source code to copy