Skip to main content

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


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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page