Skip to content

Instantly share code, notes, and snippets.

@lukya
Forked from levigroker/URLDecode.sh
Created March 8, 2021 16:28
Show Gist options
  • Save lukya/f5d0c99e450dde62fa0b9cff98a415dc to your computer and use it in GitHub Desktop.
Save lukya/f5d0c99e450dde62fa0b9cff98a415dc to your computer and use it in GitHub Desktop.
A BBEdit Text Filter script to take textual input and produce URL decoded text of the same.
#!/bin/bash
#
# URL Decode
# https://gist.github.com/levigroker/892fd435d701b4e8f56bfcec819d5ef2
#
# A BBEdit Text Filter script to take textual input and produce URL decoded text of the same.
# See http://bbeditextras.org/wiki/index.php?title=Text_Filters
# Levi Brown
# @levigroker
# levigroker@gmail.com
# January 12, 2018
##
IN=$(tee)
CMD="echo urldecode('${IN}');"
OUT=$(php -r "$CMD")
echo -n "${OUT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment