Last active
January 6, 2017 09:22
-
-
Save juhp/0f2454b46de997a12c3cddfd78335409 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# uses httpie for ease | |
# | |
# $ stckg-query.sh lts pandoc | |
# lts-7.14 pandoc-1.17.1 | |
http --all -F -h https://www.stackage.org/$1/package/$2 | grep Location: | tail -1 | sed -e "s%Location: https://www.stackage.org/%%" -e "s%/package/% %" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment