Skip to main content

Padding numbers in filenames automatically

Project description

1to001 is made for padding numbers in filenames automatically. It’s written in Python 3.

Installation

System-wide installation:

$ pip install 1to001

User installation:

$ pip install --user 1to001

For development code:

$ pip install git+https://github.com/livibetter/1to100.git

Example

$ touch 1.txt 100.txt
$ 1to001 *.txt
+ 001.txt
? ++
perform padding (y/n)? y
1.txt -> 001.txt

Options

-i (--ignore-case)

When cases are mixed, this option would ignore the cases, for example for files like:

read100me1.TXT
read5Me02.txt

They can be renamed to:

1to001 -i *.{txt,TXT}
+ read005Me02.txt
?     ++
+ read100me01.TXT
?          +
perform padding (y/n)?

More information

License

This project is licensed under the MIT License:

Copyright (c) 2013, 2014 Yu-Jie Lin

Project details


Download files

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

Source Distributions

1to001-0.2.1.zip (6.6 kB view hashes)

Uploaded Source

1to001-0.2.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

1to001-0.2.1.win32.exe (66.3 kB view hashes)

Uploaded Source

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