summaryrefslogtreecommitdiff
path: root/query_param
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-06-01 03:55:51 -0500
committerepoch <epoch@hacking.allowed.org>2020-06-01 03:57:18 -0500
commit5aa8ec238c46f1961dbd9541d0067d60e2f18c28 (patch)
treeff4b63d51bd5cbad8a947d418af00158dc5b8515 /query_param
parent39eac44f867024563448d0b606af851dff8aa35f (diff)
downloaduritools-5aa8ec238c46f1961dbd9541d0067d60e2f18c28.tar.gz
uritools-5aa8ec238c46f1961dbd9541d0067d60e2f18c28.zip
added query_param script. fixed a really dumb bug in uriescape
Diffstat (limited to 'query_param')
-rwxr-xr-xquery_param2
1 files changed, 2 insertions, 0 deletions
diff --git a/query_param b/query_param
new file mode 100755
index 0000000..3438bb7
--- /dev/null
+++ b/query_param
@@ -0,0 +1,2 @@
+#!/bin/sh
+printf "%s\n" "${QUERY_STRING}" | tr '&' '\n' | grep "^${1}=" | cut -d= -f2-