Skip to main content

batch rename

Project description

NAME
----
__br__ (Batch Rename)

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

DESCRIPTION
-----------
__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.

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

EXAMPLES
--------
```bash
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
```

STANDARDS
---------


SEE ALSO
--------

AUTHOR
------
MrmacHD <mrmachd@gmail.com>

BUGS
----

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

br-0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file br-0.1.tar.gz.

File metadata

  • Download URL: br-0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for br-0.1.tar.gz
Algorithm Hash digest
SHA256 cf57f836c686e678ef58ead35fe8dc6ac2c2f38838dae0e9a3efdb57de292b05
MD5 79fe9d7b7ac8a63d2082bea31092fa98
BLAKE2b-256 b2d8588060c3162ab909452a4b679c82e7f2ec739545b7f3092f18fdad4af218

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page