Last active
December 7, 2021 13:17
-
-
Save atulsingh0/b4c87ba548a3923ce6d747a0f582e105 to your computer and use it in GitHub Desktop.
Urlencode - Bash/Python Oneliner/Alias for Url encoding
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
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"' | |
### Usgae | |
# | |
# $ urlencode https://www.google.com | |
# https%3A%2F%2Fwww.google.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment