Skip to content

Instantly share code, notes, and snippets.

@timmc timmc/urldecode.sh
Last active Jan 29, 2019

Embed
What would you like to do?
#!/bin/bash
while read line; do
url_encoded="${line//+/ }"
printf '%b\n' "${url_encoded//%/\\x}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.