-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
72 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,50 @@ | ||
|
||
# Rename Beep File | ||
This small script removes all the `+` characters and replaces them with a space contained in the file name. | ||
This script is useful to rename all files inside a folder. | ||
Indeed it replaces all the instances of a target string (`target`) in the base name of each file with the character specified (`char`). | ||
|
||
It is a very simple tool but very useful when directly downloading zip files from folders from the [Beep site](https://beep.metid.polimi.it). | ||
## Instructions | ||
![GitHub release (latest by date)](https://img.shields.io/github/v/release/mett96/rename-beep-files) | ||
![PyPI](https://img.shields.io/pypi/v/rename-beep-files?color=gre&logoColor=green) | ||
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/rename-beep-files) | ||
![GitHub stars](https://img.shields.io/github/stars/mett96/rename-beep-files?style=social) | ||
|
||
Install the package. | ||
``` | ||
The default values are: | ||
* target = `+` | ||
* char = ` ` (space character) | ||
|
||
It is a very simple tool but very useful when directly downloading zip files from folders from the [Beep site](https://beep.metid.polimi.it). But its usage can be extended. | ||
## Instructions | ||
Install the script. | ||
```bash | ||
pip install rename-beep-files | ||
``` | ||
|
||
To show the help menu digit | ||
``` | ||
rename-beep-files -h | ||
Use it in the terminal | ||
```bash | ||
rename-beep-file | ||
``` | ||
|
||
> usage: renamebeepfiles [-h] [-r] [paths [paths ...]] | ||
> | ||
>Process renames all the file into the target directory. | ||
> | ||
>positional arguments: | ||
> paths Specify all the folders in which execute the renaming | ||
> | ||
>optional arguments: | ||
> -h, --help show this help message and exit | ||
> -r, --recursive Execute the rename action recursively into all | ||
> subdirectories of targeted folder | ||
You may include several options: | ||
* recursive | ||
* target | ||
* char | ||
* folder path | ||
|
||
```bash | ||
$ rename-beep-files -h ░▒▓ 2.12G | 2.50 | ||
usage: rename-beep-files [-h] [-r] [-t TARGET] [-c CHAR] [paths [paths ...]] | ||
|
||
Process renames all the file into the target directory. | ||
|
||
positional arguments: | ||
paths Specify all the folders in which execute the renaming | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
-r, --recursive Execute the rename action recursively into all | ||
subdirectories of targeted folder | ||
-t TARGET, --target TARGET | ||
Specify the character to replace | ||
-c CHAR, --char CHAR Specify the character with which you want to replace | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters