Last active
January 20, 2017 10:31
-
-
Save mortymacs/3c656a99aa3e8c24af1c10554d8a0f8b to your computer and use it in GitHub Desktop.
Get current location (country/city name)
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
| #!/bin/sh | |
| echo $(curl -s http://ip-api.com/json | jq -r ".country,.city") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment