Skip to content

Padding numbers in filenames automatically

License

Notifications You must be signed in to change notification settings

lbarchive/1to001

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1to001

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)?
-y (--yes)
Automatic yes to prompts

More information

License

This project is licensed under the MIT License, see COPYING.

About

Padding numbers in filenames automatically

Resources

License

Stars

Watchers

Forks

Packages

No packages published