mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-11-14 13:09:37 +01:00
6 lines
138 B
Plaintext
6 lines
138 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
res=$(curl -s "http://ip-api.com/json/" 2>/dev/null)
|
||
|
# echo $res | jq '.'
|
||
|
echo $res | jq -r -j '.city, ", ", .country, "\n"'
|