batch_rename
a cli tool to enable batch renaming of files.
installation
- download the repo and add
bin/batch_rename.exe
to path:gh repo download powrfulcow89/batch_rename
or
- get the pub package:
dart pub add batch_rename
and build from source:
dart compile exe .binbatch_rename.dart
or
- grab a prebuilt binary.
usage
batch-rename.exe substring [new_string] [-h] [-n] [-r]
positional arguments:
substring substring to strip or replace out of every file in path.
new_string string to replace for every matching substring. defaults to an empty string.
optional arguments:
-h, --help show this help message and exit.
-n rename all files to substring and number them accordingly.
-r batch rename recursively in subdirectories.
examples
- output a standard set from
favicon.png
:batch_rename favicon.png
- output the standard, apple and windows 10 sets from
logo.jpg
:batch_rename logo.jpg -a -w
- strip all brackets and their content:
batch_rename "[.+]"
Comments are closed.