Last active
November 20, 2017 02:19
-
-
Save shinkbr/78f74bcdb4a7fb0787942bcd3ff2bd88 to your computer and use it in GitHub Desktop.
Extract and split URL query parameters
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
#!/usr/bin/env bash | |
read uri | |
query=${uri##*\?} | |
echo -n "$query" | tr "&" "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment