repren

repren

TLDR

Do a dry-run renaming a directory of pngs with a literal string replacement

>_ repren --dry-run --rename --literal --from '[find_string]' --to '[replacement_string]' [*.png]
copy

Do a dry-run renaming a directory of jpegs with a regular expression

>_ repren --rename --dry-run --from '[regular_expression]' --to '[replacement_string]' [*.jpg] [*.jpeg]
copy

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

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

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

>_ repren --patterns [path/to/patfile.ext] --full [*.txt]
copy

Do a case-insensitive rename

>_ repren --rename --insensitive --patterns [path/to/patfile.ext] *
copy

Copied to clipboard
free 100$ digital ocean credit