https://github.com/alvarogarcia7/invoice-renamer
Rename invoices according to my specific pattern
https://github.com/alvarogarcia7/invoice-renamer
date-parser invoice mit-license python python3 rename-files rename-script renamer shell-script utilities utility
Last synced: about 1 month ago
JSON representation
Rename invoices according to my specific pattern
- Host: GitHub
- URL: https://github.com/alvarogarcia7/invoice-renamer
- Owner: alvarogarcia7
- License: mit
- Created: 2020-05-03T11:36:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T15:48:12.000Z (about 6 years ago)
- Last Synced: 2025-06-05T09:07:04.323Z (12 months ago)
- Topics: date-parser, invoice, mit-license, python, python3, rename-files, rename-script, renamer, shell-script, utilities, utility
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Invoice Renamer
## Purpose
Note: I use this script to rename invoices, to a my very own particular format.
## Running it
My workflow is to cumulate all the `mv` commands, then review, then execute at once.
Before and after executing, I create a temporary git repository, so I'm able to go back to the previous state. [^0]
```bash
source .env.sh # To enable the virtualenv
./exec.sh invoice.pdf
```
Then, follow the wizard.
Then, you can review the commands, if needed.
To execute them:
```
bash commands_total.sh
```
[^0]: This is not handled in this script
## Resulting format
```
$DATE - $PROVIDER - other.pdf
```
Where:
* `$DATE` is like '2020-03-09' (ISO)
* `$PROVIDER` is like 'Google SL' (Company name)
## Technical notes
### Uses the 'delayed execution' method
The script itself generates a `mv` command that can be reviewed or edited before executing (dry-run)
The script is just a transformer of strings, has no direct side effect on the system.