Skip to main content

A set of Python scripts to rename files in batch.

Project description

Introduction

rbco.rename provides a set of Python scripts to rename files in batch.

Install

  1. Install setuptools.

  2. Run:

    easy_install rbco.rename
    

This will install the renaming scripts mentioned in the following section.

Usage

  • rendel STR FILES

    Deletes the string STR from the names of all files in FILES.

  • rendeln N FILES

    Deletes the N first characters from the names of all files in FILES.

  • renlu FILES

    Renames all files in FILES performing the following operations:
    • replaces ‘ ‘ by ‘_’;
    • replaces ‘ - ‘ and ‘- ‘ by ‘-‘;
    • lowercase the names;
    • remove leading and trailing spaces.
  • renmp3 FILES

    Renames all files in FILES performing the following operations:
    • replaces ‘_’ by ‘ ‘;
    • replaces ‘ - ‘ and ‘- ‘ by ‘-‘;
    • titlecase the names;
    • lowcase file extension;
    • remove leading and trailing spaces;
    • replace ‘ ‘ by ‘-‘ after the track number, if needed;
    • makes track numbers have always 2 digits.
  • renpre PREFFIX FILES

    Renames all files in FILES adding PREFFIX in the beggining of the file name.

  • renrep OLDSTR NEWSTR FILES

    Renames all files in FILES replacing OLDSTR by NEWSTR.

  • rensuf SUFFIX FILES

    Renames all files in FILES adding SUFFIX in the end of the file name. File extension is preserved.

  • unhide FILES

    Unhides all hidden files in FILES.

Changelog

0.2 (2010-08-18)

  • Fixed bad setup.py.

0.1 (2010-08-15)

  • Initial release

Project details


Download files

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

Files for rbco.rename, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size rbco.rename-0.2.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

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