repren

Multi-pattern string replacement and file renaming tool. More information: https://github.com/jlevy/repren.

repren --dry-run --rename --literal --from 'find_string' --to 'replacement_string' *.png

repren --rename --dry-run --from 'regular_expression' --to 'replacement_string' *.jpg *.jpeg

repren --from '([0-9]+) example_string' --to 'replacement_string \1' *.csv

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

repren --rename --insensitive --patterns path/to/patfile.ext *