repren
Multi-pattern string replacement and file renaming tool. tldr-pages
On several platforms
Several platforms
Simulate renaming a directory of PNGs with a literal string replacement
repren --dry-run --rename --literal --from 'find_string' --to 'replacement_string' *.pngIdentifySimulate renaming a directory of JPEGs with a regex
repren --rename --dry-run --from 'regex' --to 'replacement_string' *.jpg *.jpegIdentifyDo a find-and-replace on the contents of a directory of CSV files
repren --from '([0-9]+) example_string' --to 'replacement_string \1' *.csvIdentifyDo both a find-and-replace and a rename operation at the same time, using a pattern file
repren --patterns path/to/patfile.ext --full *.txtIdentifyDo a case-insensitive rename
repren --rename --insensitive --patterns path/to/patfile.ext *Identify