Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorgechato/scripts

useful scripts to make your life easier
https://github.com/jorgechato/scripts

Last synced: 27 days ago
JSON representation

useful scripts to make your life easier

Awesome Lists containing this project

README

        

# Scripts
In this repo I'm going to add my personal scripts, the ones I build and I
use. At the end this are useful scripts to make your life easier.

+ [number.py](https://github.com/orggue/Scripts#numberpy)
+ [name.py](https://github.com/orggue/Scripts#namepy)

### Number.py
| arguments | description |
|:-:|:-:|
| | Add 0 into filenames, only files named with number |
| -r | Replace the current filename to a number |
| -rf | Replace the current folder name to a number |

##### <>
| before | after |
|:-:|:-:|
| 1.jpg | 01.jpg |
| 15.jpg | 15.jpg |

##### <-r>
| before | after |
|:-:|:-:|
| 1-test.jpg | 01.jpg |
| 15.jpg | 02.jpg |

##### <-rf>
| before | after |
|:-:|:-:|
| /git-folder | /0 |
| /test-folder | /1 |

### Name.py
| arguments | description |
|:-:|:-:|
| -b [old name] -a [new name] | Change part of the filename to another |
| -r [old name] | Delete part of the filename |

##### <-r test>
| before | after |
|:-:|:-:|
| 1-test.jpg | 1-.jpg |
| test15.pdf | 15.pdf |

##### <-b "hello world" -a github>
| before | after |
|:-:|:-:|
| test hello world.md | test github.md |
| hello world by jorge chato.mov | github by jorge chato.mov |