Sample Header Ad - 728x90

Get my country by IP in bash

19 votes
4 answers
26452 views
I want to use the name of the country where I am now in a bash script. I can get the external IP using next command: curl ifconfig.me But how can I get my country name?
Asked by Radu Rădeanu (1813 rep)
Jul 18, 2013, 10:22 AM
Last activity: Nov 30, 2019, 09:48 AM