double the % to two.
Project description
dblpct
The % in the string given as the first argument is doubled and output to stdout.
It's my hobby CLI tool.
install
# pip install dblpct
how to use
ex1)
# dblpct http://example.com/%E3%83%86%E3%82%B9%E3%83%88URL
http://example.com/%%E3%%83%%86%%E3%%82%%B9%%E3%%83%%88URL
ex2)
# dblpct -r http://example.com/%%E3%%83%%86%%E3%%82%%B9%%E3%%83%%88URL
http://example.com/%E3%83%86%E3%82%B9%E3%83%88URL
-r means Reverse operation of this tool.
ex3)
# dblpct -r $(dblpct %%)
%%
# dblpct $(dblpct -r %%)
%%
# dblpct $(dblpct %%)
%%%%%%%%
Caution
Special characters in bash, etc. are not escaped.
They will be interpreted as a command line string when entered.
ex1)
# dblpct FJWRF%)faw
-bash: syntax error near unexpected token `)'
If you want to enter special characters,
enclose them in quotes or escape them appropriately.
ex2)
# dblpct 'fahj4(jfawe&%%fawle$kf'
fahj4(jfawe&%%%%fawle$kf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dblpct-20220114.2.tar.gz
(2.5 kB
view details)
File details
Details for the file dblpct-20220114.2.tar.gz.
File metadata
- Download URL: dblpct-20220114.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59296746dd4407a3d74691dd58dc3b71689074dd1ef36a0ac644035ac49faa70
|
|
| MD5 |
793528c7cac13a4788c3ce8d3d2ea400
|
|
| BLAKE2b-256 |
5be222f72b8e5d45eb84471d31cab5c3a3a18cf6aab3c0293e97d07024048344
|