Created
April 6, 2020 21:21
-
-
Save rubeniskov/982b00c5d5ec440a82d06f6713304bc4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#usage: script resolve-gist-url.sh username <gistname1> <gistname1> ... | |
#example: resolve-gist-url.sh rubeniskov resolve-gist-url.sh | |
wget -q -O- "https://api.github.com/users/$1/gists"|grep 'raw_url'|awk -F'"' '{print $4}'|grep -E "$(echo ${@:2}|tr ' ' '|')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment