Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

batch rename

Project description

__br__ (Batch Rename)

br [ __-h__ ] [ __-v__ ] [ __-o__ ] [ __-t__ ] [ __-i INDEXES__ ] [ __-d DIRECTORY__ ] [ __-p PATTERN__ ] ...

__BR__ (Batch Rename) is an unix utility to ease renaming of a batch of files.

__-o__, __--output__
cause __br__ to be verbose, showing files after they are renamed

__-t__, __--test__
test run, enables __--output__ too

__-i__, __--indexes__ = _INDEXES_
substring of indexes that need to be replaced with the new title, in form of x:y

__-d__, __--directory__ = _DIRECTORY_
directory containing batch of files

__-p__, __--pattern__ = _PATTERN_
regular expression for renaming pattern

_TITLE_ new title to replace the old one

__-h__, __--help__
Display help information and exit.

__-v__, __--version__
Display version information and exit.

+ `` traditional easy_install or pip
+ `setup.cfg` for distutils2 installation
+ `scripts/br` executable binary
+ `br/` a separate library packaged version

MrmacHD:~$ ls *.txt
111111.txt 222222.txt 333333.txt
MrmacHD:~$ br -t -i 2:3 -p \*.txt test
111111.txt -> 11test111.txt
222222.txt -> 22test222.txt
333333.txt -> 33test333.txt



MrmacHD <>


Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
br-0.1.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page