CmdID

CmdID / Commands

repren

Multi-pattern string replacement and file renaming tool. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Simulate renaming a directory of PNGs with a literal string replacement

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

Simulate renaming a directory of JPEGs with a regex

repren --rename --dry-run --from 'regex' --to 'replacement_string' *.jpg *.jpegIdentify

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

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

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 *.txtIdentify

Do a case-insensitive rename

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