Options (3)
-n, --dry-runbooleanDo a dry-run renaming a directory of PNGs with a literal string replacement
Example:
repren {{[-n|--dry-run]}} --rename --literal --from '{{find_string}}' --to '{{replacement_string}}' {{*.png}}-p, --patternsbooleanDo both a find-and-replace and a rename operation at the same time, using a pattern file
Example:
repren {{[-p|--patterns]}} {{path/to/patfile.ext}} --full {{*.txt}}-i, --insensitivebooleanDo a case-insensitive rename
Example:
repren --rename {{[-i|--insensitive]}} {{[-p|--patterns]}} {{path/to/patfile.ext}} *Examples (5)
Do a dry-run renaming a directory of PNGs with a literal string replacement
repren [-n|--dry-run] --rename --literal --from 'find_string' --to 'replacement_string' *.pngDo a dry-run renaming a directory of JPEGs with a `regex`
repren --rename [-n|--dry-run] --from 'regex' --to 'replacement_string' *.jpg *.jpegDo a find-and-replace on the contents of a directory of CSV files
repren --from '([0-9]+) example_string' --to 'replacement_string \1' *.csvDo both a find-and-replace and a rename operation at the same time, using a pattern file
repren [-p|--patterns] path/to/patfile.ext --full *.txtDo a case-insensitive rename
repren --rename [-i|--insensitive] [-p|--patterns] path/to/patfile.ext *made by @shridhargupta | data from tldr-pages